Documentation
¶
Index ¶
- func GetFormatType(contentType string, filename string) string
- func GetUrlScheme(url string) string
- func NewVerboseChannelIterator(source chan string) chroma.Iterator
- func ParseAndPrintError(mgr *Manager, errReader io.Reader) error
- func ParseAndPrintOutput(mgr *Manager, output io.Reader) error
- func ParseResponse(text []byte, url string) (*http.Response, error)
- func Run(argv []string) error
- func SplitHeader(respBF *bufio.Reader) ([]byte, error)
- func TraversalSearchBool(key string, argv []string, default2 bool) (bool, []string, error)
- func TraversalSearchString(key string, argv []string, default2 string) (string, []string, error)
- type ArgType
- type ColorPrinter
- type CurlParam
- type CurlParameter
- type Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFormatType ¶
func GetUrlScheme ¶
func NewVerboseChannelIterator ¶
func NewVerboseChannelIterator(source chan string) chroma.Iterator
func TraversalSearchBool ¶
Types ¶
type ColorPrinter ¶
func (*ColorPrinter) Highlight ¶
func (c *ColorPrinter) Highlight(text []byte, lexer string)
func (*ColorPrinter) VerboseChannelFormat ¶
func (c *ColorPrinter) VerboseChannelFormat(text chan string) error
type CurlParameter ¶
func ParseArgs ¶
func ParseArgs(argv []string) (CurlParameter, error)
func (*CurlParameter) GetBool ¶
func (p *CurlParameter) GetBool(key string) bool
func (*CurlParameter) GetString ¶
func (p *CurlParameter) GetString(key string) string
type Manager ¶
type Manager struct { CurlParameter CurlParameter Printer ColorPrinter Debug bool CurlCmd string Version bool }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.