• Home
  • Topics
  • Uses
  • Categories
Edit this page

Golang Studown

Nov 19, 2020 · 1 min read
func StudownWait(hook func()) {
    sign := make(chan os.Signal)
    signal.Notify(sign, os.Interrupt, os.Kill)
    <-sign
    if hook != nil {
        hook()
    }
}
Last updated on Nov 19, 2020
Bang
Authors
Bang
Professor of Artificial Intelligence
My research interests include distributed robotics, mobile computing and programmable matter.

← Shell输出重定向 Dec 11, 2020
如何让Gitlab私有仓库支持Go Get Nov 5, 2020 →

© 2024 Me. This work is licensed under CC BY NC ND 4.0

Published with Hugo Blox Builder — the free, open source website builder that empowers creators.