Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example include
// Located in /controllers directory
package controller
func stuff(){}
package main
import "./controller"
func main() {
controller.stuff()
}
@michaeljs1990

This comment has been minimized.

Copy link
Owner Author

michaeljs1990 commented Feb 18, 2015

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
You can’t perform that action at this time.