An interpreted programming language written in Go.
Here you will find documentation for the language syntax, as well as the standard library:
Throughout the documentation, you will find several function definitions. The following syntax is used to denote the number and type of any function arguments as well as return types. All functions have an implicit return. If a function doesn’t list a return type, it’s assumed to be nil.
someFunc(arg1: string)
- This functions takes a single arg which must be a stringsomeFunc(multiple...: int)
- This function takes 1 or more arguments of type intsomeFunc(in: string): string
- This function takes a single string argument and returns a stringprint(in...: T)
- Print takes 1 or more arguments of any typecalc(op: string, nums...: string|int): int
- This function takes one argument of type string plus one or more arguments of type string OR int. The function returns an int.calc(op: string, nums...: string|int): int|error|nil
- This function takes one argument of type string plus one or more arguments of type string OR int. The function returns an int, error, or nil.hashMerge(map1, map2: map): map
- hashMerge takes two maps. Since they’re the same type, the type only needs to be on the last argument.hashMerge(map1, map2: map[, overwrite: bool]): map
- hashMerge takes two maps and an optional boolean argument.