url-parser/config/config.go
Robert Kaussow 8457c57394
fix: fallback to stdin automatically if no url provided by flag (#67)
* fix: fallback to stdin automatically if no url provided by flag

* cleanup
2023-07-23 10:02:46 +02:00

16 lines
301 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
PathIndex int
}