Files
the-way-to-go_ZH_CN/eBook/examples/chapter_4/gotemplate.go
2013-04-15 19:50:45 +08:00

30 lines
299 B
Go

package main
import (
fmt
)
const c = C
var v int = 5
type T struct{}
func init() { // initialization of package
}
func main() {
var a int
Func1()
// ...
fmt.Println(a)
}
func (t T) Method1() {
//...
}
func Func1() { // exported function Func1
//...
}