Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

22 rindas
550 B

  1. package altsrc
  2. import (
  3. "time"
  4. "gopkg.in/urfave/cli.v1"
  5. )
  6. // InputSourceContext is an interface used to allow
  7. // other input sources to be implemented as needed.
  8. type InputSourceContext interface {
  9. Int(name string) (int, error)
  10. Duration(name string) (time.Duration, error)
  11. Float64(name string) (float64, error)
  12. String(name string) (string, error)
  13. StringSlice(name string) ([]string, error)
  14. IntSlice(name string) ([]int, error)
  15. Generic(name string) (cli.Generic, error)
  16. Bool(name string) (bool, error)
  17. BoolT(name string) (bool, error)
  18. }