Discover modules > cue.dev/x/k8s.io > apimachinery > pkg > util > intstr
v0.7.0
#IntOrString: matchN(1, [int, string]) ¶

IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.

Source files

  • schema.cue