Built-in Functions
The standard library is a collection of packages that provide a wide range of functionality. The standard library is included with the goose distribution and is always available for use in your programs.
Function Index
-
len(x)
Get the length of an array or string.
-
print(...)
Print values to the standard output.
-
println(...)
Print values to the standard output with a newline.
-
printf(format, ...)
Print values to the standard output with a format string.
-
exit(code)
Exit the program with an exit code.
-
typeof(value)
Get the type of a value.
-
int.parse(str)
Parse an integer from a string.
-
int.tryParse(str)
Try to parse an integer from a string.
-
float.parse(str)
Parse a float from a string.
-
float.tryParse(str)
Try to parse a float from a string.
-
bool.parse(str)
Parse a boolean from a string.