Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <wking@tremily.us>
- Loading branch information