Skip to content

Instantly share code, notes, and snippets.

@syossan27
Created February 26, 2018 15:04
Show Gist options
  • Save syossan27/0f02e07fe086da0b958e5006be4671d0 to your computer and use it in GitHub Desktop.
Save syossan27/0f02e07fe086da0b958e5006be4671d0 to your computer and use it in GitHub Desktop.
t := tebata.New(syscall.SIGINT, syscall.SIGTERM)
t.Reserve(
// 実行予定関数
func(first, second) {
fmt.Println(strconv.Itoa(first + second))
},
1, 2, // 引数
)
t.Reserve(
func() {
fmt.Println("Hello")
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment