mirror of
https://github.com/thegeeklab/url-parser.git
synced 2024-11-16 02:00:45 +00:00
18 lines
335 B
Go
18 lines
335 B
Go
package config
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrEmptyURL = errors.New("no url provided either by \"url\" or \"stdin\"")
|
|
ErrReadStdin = errors.New("failed to read \"stdin\"")
|
|
ErrParseURL = errors.New("failed to parse url")
|
|
)
|
|
|
|
type Config struct {
|
|
URL string
|
|
QueryField string
|
|
QuerySplit bool
|
|
PathIndex int
|
|
JSONOutput bool
|
|
}
|