You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using jsonpb [1,2].
Drop the proto.String bits to avoid errors like:
./example.go:17: cannot use proto.String("linux") (type *string) as
type string in field value
And use a reference to s to avoid:
./example.go:29: cannot use s (type oci.LinuxSpec) as type
proto.Message in argument to marshaler.Marshal: oci.LinuxSpec
does not implement proto.Message (ProtoMessage method has pointer
receiver)
[1]: golang/protobuf#44
[2]: http://godoc.org/github.com/golang/protobuf/jsonpb
Signed-off-by: W. Trevor King <[email protected]>
0 commit comments