Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FunctionDecl ¶
func (*FunctionDecl[T]) FString ¶
WriteFunction writes a function with a body of CodeWritable values to a string.
Format:
func name() { instructions... }
Parameters:
- name: The name of the function.
- body: The body of the function.
- opts: Optional options to pass to the CodeWritable values.
Returns:
- string: The string representation of the function.
Behaviors:
- If the body is empty, the function will be written without a body.
Click to show internal directories.
Click to hide internal directories.