I will write down various functions in Go language so as not to forget them.
func function name() {
//Write the process you want to summarize
}
Function name()
Function name(value)
Example
funk main() {
//Passing cat as an argument to the variable animal
ask("cat")
}
funk ask(animal string) {
fmt.Printf("%s/n", animal)
}
Recommended Posts