Answer the question
In order to leave comments, you need to log in
How to make a singleton in Go?
You need to work with one config from several package.
Answer the question
In order to leave comments, you need to log in
package initsomething
func init() {var something type = whatyouwant}
package main
import _ "initsomething"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question