Functions
9 min · Go
Package code under a name so you can reuse it.
Go · Functions0/5 cleared
Enemy 1 of 5
A function names a block of code. In Go the parameter type comes after the name, and the return type after the ( ).
Use return to hand a value back.
You
Syntax Skeleton
Loading editor...
Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: 10