In a code example, I’m confuse if it’s possible to call ModuleName() each
package API after execute CompileModules()?
app.go
func CompileModules() []interface{
return []interface{
Example1.AddModule(),
Example2.AddModule(),
Example3.AddModule(),
}
}
Init.go in Hello1 folder:
package Example1
type AddModule struct {}
func (p *AddModule) ModuleName() string {
return “Hello 1”
}
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/f5c1928c-70fc-422c-aaaf-8ce242da24b4n%40googlegroups.com.