コード例 #1
0
ファイル: please.go プロジェクト: thought-machine/please
func please(tid int, state *core.BuildState, parsePackageOnly bool, include, exclude []string) {
	for {
		label, dependor, t := state.NextTask()
		switch t {
		case core.Stop, core.Kill:
			return
		case core.Parse, core.SubincludeParse:
			parse.Parse(tid, state, label, dependor, parsePackageOnly, include, exclude)
		case core.Build, core.SubincludeBuild:
			build.Build(tid, state, label)
		case core.Test:
			test.Test(tid, state, label)
		}
		state.TaskDone()
	}
}
コード例 #2
0
func main() {
	fmt.Println("print from self")
	test.Test()
	test.Call()
}
コード例 #3
0
ファイル: main.go プロジェクト: sjtlqy/Go
func main() {
	test.Test()
	test.test()
}