Documentation
¶
Index ¶
- func AllFlags(cfg *config.Config) []cli.Flag
- func Fragment(cfg *config.Config) cli.ActionFunc
- func Host(cfg *config.Config) cli.ActionFunc
- func Password(cfg *config.Config) cli.ActionFunc
- func Path(cfg *config.Config) cli.ActionFunc
- func PathFlags(cfg *config.Config) []cli.Flag
- func Port(cfg *config.Config) cli.ActionFunc
- func Query(cfg *config.Config) cli.ActionFunc
- func QueryFlags(cfg *config.Config) []cli.Flag
- func Run(cfg *config.Config) cli.ActionFunc
- func Scheme(cfg *config.Config) cli.ActionFunc
- func User(cfg *config.Config) cli.ActionFunc
- type Parser
- type QueryParam
- type URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fragment ¶
func Fragment(cfg *config.Config) cli.ActionFunc
Fragment prints out the fragment part from the url.
func Host ¶
func Host(cfg *config.Config) cli.ActionFunc
Host prints out the host part from the url.
func Password ¶
func Password(cfg *config.Config) cli.ActionFunc
Password prints out the password part from url.
func Query ¶
func Query(cfg *config.Config) cli.ActionFunc
Query prints out the query part from url.
func QueryFlags ¶
QueryFlags defines flags for query subcommand.
Types ¶
type Parser ¶
func NewURLParser ¶
type QueryParam ¶
type URL ¶
type URL struct {
Scheme string `json:"scheme"`
Hostname string `json:"hostname"`
Port string `json:"port"`
Path string `json:"path"`
Fragment string `json:"fragment"`
RawQuery string `json:"rawQuery"`
Query string `json:"-"`
QueryParams []QueryParam `json:"queryParams"`
Username string `json:"username"`
Password string `json:"password"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.