-
-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
type IntOrString struct {
Type Type `protobuf:"varint,1,opt,name=type,casttype=Type"`
IntVal int32 `protobuf:"varint,2,opt,name=intVal"`
StrVal string `protobuf:"bytes,3,opt,name=strVal"`
}
// Type represents the stored type of IntOrString.
type Type int64
const (
Int Type = iota // The IntOrString holds an int.
String // The IntOrString holds a string.
)
faker.FakeData will fill Type
with a int64 value, but Type
is an alias of int64
, only 0
and 1
is accepted, what can I do with this issue?
Metadata
Metadata
Assignees
Labels
No labels