Created
January 31, 2015 20:51
-
-
Save michaeljs1990/d664539e1f6be6d6d8df to your computer and use it in GitHub Desktop.
Example include
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Located in /controllers directory | |
package controller | |
func stuff(){} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "./controller" | |
func main() { | |
controller.stuff() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is actually wrong because stuff() is not exported so this would fail. it should be Stuff()