Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrHelp = errors.New("help")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DaysAhead int `short:"d" long:"days" required:"true" description:"The number of days ahead to look for a tee-slot"` TimeStart string `short:"t" long:"timestart" required:"true" description:"The time after which a tee-time will be selected"` TimeEnd string `short:"e" long:"timeend" required:"true" description:"The time before which a tee-time will be selected"` Retries int `short:"r" long:"retries" required:"true" default:"5" description:"The number of times to retry booking"` DryRun bool `short:"x" long:"dryrun" description:"Run everything, but don't do the booking and assume it succeeds"` Username string `short:"u" long:"username" required:"true" description:"The username to use for booking"` Pin string `short:"p" long:"pin" required:"true" description:"The pin associated with the username for booking"` BaseUrl string `short:"b" long:"baseurl" required:"true" description:"The host for the booking website"` FromNumber string `short:"f" long:"fromnumber" required:"true" description:"The number to send the confirmation SMS from"` ToNumber string `short:"n" long:"tonumber" required:"true" description:"The number to send the confirmation SMS to"` }
Click to show internal directories.
Click to hide internal directories.