I have a function which return INIConfig and error. It's easy to use
config, err := NewINIConfig()
to accept the return values.
But when I special return types for these variables, the compiler return
config Configer, err error := NewINIConfig()
Because Configer is an interface, I want to special the variable type to
it. But it seems the golang don't support this way now? Or any other better
ways to solve this problem? Thank you in advance.
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@example.com.
For more options, visit https://groups.google.com/d/optout.