core/textfield/types.go
Functions
func String
func (t InputType) String() string {
switch t {
case TypeText:
return "Text"
case TypePassword:
return "Password"
case TypeEmail:
return "Email"
case TypeNumber:
return "Number"
case TypeSearch:
return "Search"
default:
return "Unknown"
}
}
String returns a human-readable name for the input type.