Skip to content

Instantly share code, notes, and snippets.

@michaeljs1990
Created January 31, 2015 20:51
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 michaeljs1990/d664539e1f6be6d6d8df to your computer and use it in GitHub Desktop.
Save michaeljs1990/d664539e1f6be6d6d8df to your computer and use it in GitHub Desktop.
Example include
// Located in /controllers directory
package controller
func stuff(){}
package main
import "./controller"
func main() {
controller.stuff()
}
@michaeljs1990
Copy link
Author

this is actually wrong because stuff() is not exported so this would fail. it should be Stuff()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment