url-parser/config/config.go

18 lines
335 B
Go
Raw Normal View History

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
}