os.signal.go 244 B

123456789101112131415
  1. package packages
  2. import (
  3. "os/signal"
  4. "reflect"
  5. "github.com/mattn/anko/env"
  6. )
  7. func init() {
  8. env.Packages["os/signal"] = map[string]reflect.Value{
  9. "Notify": reflect.ValueOf(signal.Notify),
  10. "Stop": reflect.ValueOf(signal.Stop),
  11. }
  12. }