Documentation ¶
Index ¶
- Constants
- func FormatBool(ctx context.Context, input []types.Value) (types.Value, error)
- func IntToStr(ctx context.Context, input []types.Value) (types.Value, error)
- func ParseBool(ctx context.Context, input []types.Value) (types.Value, error)
- func ToFloat(ctx context.Context, input []types.Value) (types.Value, error)
- func ToInt(ctx context.Context, input []types.Value) (types.Value, error)
Constants ¶
View Source
const (
// ModuleName is the prefix given to all the functions in this module.
ModuleName = "convert"
)
Variables ¶
This section is empty.
Functions ¶
func FormatBool ¶
FormatBool converts a boolean to a string representation that can be consumed by ParseBool. This value will be `"true"` or `"false"`.
func ParseBool ¶
ParseBool parses a bool string and returns a boolean. It errors if you pass it an invalid value. Valid values match what is accepted by the golang strconv.ParseBool function. It's recommended to use the strings `true` or `false` if you are undecided about what string representation to choose.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.