Skip to content

Instantly share code, notes, and snippets.

@hschoenburg
Last active May 18, 2019 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hschoenburg/be20c18f31cb9445279fd5a49349238b to your computer and use it in GitHub Desktop.
Save hschoenburg/be20c18f31cb9445279fd5a49349238b to your computer and use it in GitHub Desktop.

Not sure what the underscore is for here? (golang) How does assigning a struct literal to a var result in two return values? I dont understand.

 var (
   _ sdk.AppModule      = AppModule{}
   _ sdk.AppModuleBasic = AppModuleBasic{}
 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment