@cherrymui, what should I add to this test in order to have a complete picture of what needs to be implemented? You mentioned types identity but Go types do not cross the C API barrier. Even when the underlying data of avoid *pointer is actually a Go value, if it crosses the C API...
2 changes: 1 addition & 1 deletion2test/fixedbugs/issue18392.go Original file line numberDiff line numberDiff line change Expand Up@@ -10,5 +10,5 @@ type A interface { // TODO(mdempsky): This should be an error, but this error is ...
I got an empty raw message with the struct tagged email, but the other struct behaves normally. What did you expect to see? Both structs should've marshalled. gabyhelp commented Feb 14, 2025 Related Issues encoding/json Unmarshal function does not work with lowercase struct fields of go typ...
On the other hand, I think Go runtime should specially handle zero-capacity slicing results, along with taking addresses of zero-size values, to make the data pointers point to a global unique address within each program run. Doing this will remove many surprises in Go programming. [edit] ...
Just use github.com/microsoft/go systemcrypto experiment with build tag to require FIPS. Using an "unofficial" fork of the Go standard library is not a viable solution for everyone. @xnoxThe point of issue is that the boringcrypto experiment has an "implicit" dependency on cgo which is not...
I also wonder if this should be extended to other scenarios. For example, shadowing a type can result in failed type conversions and declarations: $ cat f1.go package main func main() { int := 3 println(int(3)) } $ go run f1.go # command-line-arguments ./f.go:4:13: cannot ...
go test -mod=vendor What did you expect to see? At least the test should run What did you see instead? runtime/cgo In file included from _cgo_export.c:3: /usr/local/include/stdlib.h:134:25: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unsp...
as a note/TODO: in a separate PR we need to make all the client methods to use pointers. golang encourages a matching pattern. Sorry, something went wrong. ereslibre, rosti, and MalloZup reacted with thumbs up emoji 👍 neolit123reviewedJan 17, 2019 ...
So there are 2 way i can think of: Lockup account tracks all unbonding entries it made, automatically run check all the entries for matured one then run TrackUndelegation with that entry. This check should be run before every execution the account made. Lockup account tracks all un...
// TODO(yugui) Should use proto.StructProperties? return fmt.Errorf("unmarshaling of symbolic enum %q not supported: %T", repr, rv.Interface()) case float64: rv.Set(reflect.ValueOf(int32(v)).Convert(rv.Type())) return nil default: return fmt.Errorf("cannot assign %#v into...