datastore: datastore.put does not allow any non-empty value in the slice if the first value is empty with omitempty
option
#6983
Labels
api: datastore
Issues related to the Datastore API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Client
Datastore
Environment
MacOS
Go Environment
$ go version
$ go env
Code
Expected behavior
The datastore put method should allow the mixing of empty and non-empty values in the array in any order.
Actual behavior
It does not allow any non-empty value if the first value is empty.
Additional context
Tested with version 1.0.0 and 1.9.0
P.S.
Not saving empty slice is expected behaviour of
omitempty
, but removing empty values from the slice is not. Perhaps it is an another issueThe text was updated successfully, but these errors were encountered: