+1 (Upgrade to 1.18)

Go 1.13 was released in September 2019 and has long reached end-of-life. It
no longer receives security fixes or official support. Since *Go 1.18*
introduced generics and other major features, many open source and
enterprise projects have made 1.18 the minimum supported compiler.


张磊 <[email protected]> 于2026年2月27日周五 18:31写道:

> I propose upgrading the iotb-client-go GOLANG version and would like to
> initiate a vote with the following options:
>
> Maintain version 1.13
> Upgrade to version 1.18
> Upgrade to version 1.20
>
> Regarding the modification, for cases like where id = ? where the value
> type is uncertain, Go requires normalization for type conversion. Refer to
> this code example:
>
>
> https://github.com/apache/iotdb-client-go/pull/150/changes#diff-cfadcaa82f9183622d5fc375535f66d6fe46889e64f71ec30a745b335748ca5eR323
>
>
>
>
> ```
>
> func join[E any](tz *time.Location, scale TimeUnit, values []E) (string,
> error) {
>     items := make([]string, len(values), len(values))
>     for i := range values {
>         val, err := format(tz, scale, values[i])
>         if err != nil {
>             return "", err
>         }
>         items[i] = val
>     }
>     return strings.Join(items, ", "), nil
> }
> ```
>

Reply via email to