Wy Lee
  • Home
  • Tech
  • Life
  • Tags
Sign in Subscribe

Golang

Related to Go (Golang)
Tech

Golang basics: function declaration

To document my learning in Golang, here are some basic syntax rules for Golang functions. * A function can take zero or more arguments * The types comes after the variable name func add(x, y int) int { return x, y } // func add(x int, y int) int is also fine func
15 Feb 2024 2 min read
Page 1 of 1
Wy Lee © 2025
  • Sign up
Powered by Ghost