Skip to content

Instantly share code, notes, and snippets.

@sugilog
Created December 28, 2014 05:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sugilog/49f235141796d02d44c7 to your computer and use it in GitHub Desktop.
パッケージ:aliasと代入
package main
import (
"fmt"
m "mypackage"
)
func main() {
fmt.Println( m.One() );
fmt.Println( m.Two() );
m := 123
fmt.Println( m );
// fmt.Println( m.One() );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment