date.go 231 B

123456789101112131415161718192021
  1. package date
  2. import(
  3. "fmt"
  4. "time"
  5. "surdeus.su/core/cli/mtool"
  6. )
  7. func Run(flagSet *mtool.Flags) {
  8. flagSet.Parse()
  9. args := flagSet.Args()
  10. if len(args) > 0 {
  11. flagSet.Usage()
  12. }
  13. date := time.Now()
  14. fmt.Println(date)
  15. }