Documentation
¶
Index ¶
- Constants
- func Config(subFn ConfigBlock)
- func Examples(s string) string
- func Execute()
- func OutputDefaultJSON(i interface{})
- func OutputDefaultNone(i interface{})
- func OutputDefaultString(r rootOutput)
- func OutputDefaultYAML(i interface{})
- func PrintJSON(i interface{})
- func PrintString(i interface{})
- func PrintYAML(i interface{})
- func ValidDomain(i interface{}) bool
- func ValidFile(f string) bool
- func ValidIP(i string) bool
- func ValidIPv4(i string) bool
- func ValidIPv6(i string) bool
- func ValidURL(u string) bool
- type ByteSize
- type ConfigBlock
- type GeoIPBatch
- type GeoIPSingle
Constants ¶
View Source
const ( DocTypeMan = "man" DocTypeMarkdown = "markdown" DocTypeReST = "rest" DocTypeYaml = "yaml" )
View Source
const ( FileTypeHTML = "html" FileTypeJSON = "json" FileTypeMarkdown = "markdown" FileTypePDF = "pdf" FileTypeTOML = "toml" FileTypeYAML = "yaml" )
View Source
const ( ImTypeAudio = "audio" ImTypeFile = "file" ImTypeID = "id" ImTypePhoto = "photo" ImTypeText = "text" ImTypeVideo = "video" ImTypeVoice = "voice" )
Variables ¶
This section is empty.
Functions ¶
func Config ¶ added in v0.0.12
func Config(subFn ConfigBlock)
func OutputDefaultJSON ¶ added in v0.0.12
func OutputDefaultJSON(i interface{})
func OutputDefaultNone ¶ added in v0.1.0
func OutputDefaultNone(i interface{})
func OutputDefaultString ¶ added in v0.0.12
func OutputDefaultString(r rootOutput)
func OutputDefaultYAML ¶ added in v0.0.12
func OutputDefaultYAML(i interface{})
func PrintString ¶ added in v0.1.0
func PrintString(i interface{})
func ValidDomain ¶ added in v0.0.12
func ValidDomain(i interface{}) bool
If i is a domain return true.
Types ¶
type ConfigBlock ¶ added in v0.1.0
type ConfigBlock string
const ( ConfigBlockICP ConfigBlock = "icp" ConfigBlockLINE ConfigBlock = "line" ConfigBlockSlack ConfigBlock = "slack" ConfigBlockTelegram ConfigBlock = "telegram" )
func (ConfigBlock) String ¶ added in v0.1.0
func (c ConfigBlock) String() string
type GeoIPBatch ¶ added in v0.0.7
type GeoIPBatch []GeoIPSingle
func (GeoIPBatch) Request ¶ added in v0.0.10
func (GeoIPBatch) Request(geoipBatch []string) (*GeoIPBatch, error)
type GeoIPSingle ¶ added in v0.0.7
type GeoIPSingle struct {
Continent string `json:"continent"`
Country string `json:"country"`
CountryCode string `json:"countryCode"`
RegionName string `json:"regionName"`
City string `json:"city"`
District string `json:"district"`
Timezone string `json:"timezone"`
Currency string `json:"currency"`
ISP string `json:"isp"`
Org string `json:"org"`
As string `json:"as"`
Asname string `json:"asname"`
Mobile bool `json:"mobile"`
Proxy bool `json:"proxy"`
Hosting bool `json:"hosting"`
Query string `json:"query"`
}
func (GeoIPSingle) Request ¶ added in v0.0.10
func (GeoIPSingle) Request(geoipInput string) (*GeoIPSingle, error)
Click to show internal directories.
Click to hide internal directories.