There are no default constructors in Go, but you can declare methods for any type. You could make it a habit to declare a method called "Init".
確定! 回上一頁