values.json 1.7 KB

12345678910111213141516171819202122232425
  1. [
  2. {"type": "bool", "parser": "strconv.ParseBool(s)"},
  3. {"type": "string", "parser": "s, error(nil)", "format": "string(*f.v)", "plural": "Strings"},
  4. {"type": "uint", "parser": "strconv.ParseUint(s, 0, 64)", "plural": "Uints"},
  5. {"type": "uint8", "parser": "strconv.ParseUint(s, 0, 8)"},
  6. {"type": "uint16", "parser": "strconv.ParseUint(s, 0, 16)"},
  7. {"type": "uint32", "parser": "strconv.ParseUint(s, 0, 32)"},
  8. {"type": "uint64", "parser": "strconv.ParseUint(s, 0, 64)"},
  9. {"type": "int", "parser": "strconv.ParseFloat(s, 64)", "plural": "Ints"},
  10. {"type": "int8", "parser": "strconv.ParseInt(s, 0, 8)"},
  11. {"type": "int16", "parser": "strconv.ParseInt(s, 0, 16)"},
  12. {"type": "int32", "parser": "strconv.ParseInt(s, 0, 32)"},
  13. {"type": "int64", "parser": "strconv.ParseInt(s, 0, 64)"},
  14. {"type": "float64", "parser": "strconv.ParseFloat(s, 64)"},
  15. {"type": "float32", "parser": "strconv.ParseFloat(s, 32)"},
  16. {"name": "Duration", "type": "time.Duration", "no_value_parser": true},
  17. {"name": "IP", "type": "net.IP", "no_value_parser": true},
  18. {"name": "TCPAddr", "Type": "*net.TCPAddr", "plural": "TCPList", "no_value_parser": true},
  19. {"name": "ExistingFile", "Type": "string", "plural": "ExistingFiles", "no_value_parser": true},
  20. {"name": "ExistingDir", "Type": "string", "plural": "ExistingDirs", "no_value_parser": true},
  21. {"name": "ExistingFileOrDir", "Type": "string", "plural": "ExistingFilesOrDirs", "no_value_parser": true},
  22. {"name": "Regexp", "Type": "*regexp.Regexp", "parser": "regexp.Compile(s)"},
  23. {"name": "ResolvedIP", "Type": "net.IP", "parser": "resolveHost(s)", "help": "Resolve a hostname or IP to an IP."},
  24. {"name": "HexBytes", "Type": "[]byte", "parser": "hex.DecodeString(s)", "help": "Bytes as a hex string."}
  25. ]