type Human struct {
Name string
Age string | int // <--- this is the problem
}
I want to do something like Node.js and declare a field with a union type.
type Human struct {
Name string
Age string | int // <--- this is the problem
}
I want to do something like Node.js and declare a field with a union type.