[go-nuts] Re: Function Call Question

2016-08-16 Thread Tamás Gulácsi
type checkfunc func() string var templateFuncs = make(map[string]checkfunc) var templateFuncsMu sync.RWMutex func RegisterTemplateFunc(a, b string, f checkfunc) { templateFuncsMu.Lock() templateFuncs[a+"/"+b] = f templateFuncsMu.Unlock() } func TemplateFunc(a, b string) checkfunc {

[go-nuts] Re: Function Call Question

2016-08-16 Thread Mahesh Bhat
On Friday, August 12, 2016 at 1:49:25 AM UTC+5:30, Tamás Gulácsi wrote: > > You have to manage the name->function map. Use a Register function to hide > it. Can you please elaborate ? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsub