Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

[]bytes tries to convert to []uint8 #3

Open
domgolonka opened this issue Jul 4, 2020 · 0 comments
Open

[]bytes tries to convert to []uint8 #3

domgolonka opened this issue Jul 4, 2020 · 0 comments

Comments

@domgolonka
Copy link

domgolonka commented Jul 4, 2020

yaml:
key: "MYRANDOMEKEY"

proto:
bytes key = 1 [(gogoproto.moretags) = "yaml:",omitempty""];

proto.go
Key []byte protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty" yaml:",omitempty"

{"level":"fatal","error":"yaml: unmarshal errors:\n line 86: cannot unmarshal !!str MYRANDOMEKEY... into []uint8","time":"2020-07-03T21:33:59-07:00"}

@domgolonka domgolonka changed the title Proto bytes tries to convert to []uint8 []bytes tries to convert to []uint8 Jul 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant