Documentation
¶
Overview ¶
Package command holds functionality for running puzzle solving command.
Index ¶
- Variables
- func ContextWithOptions(ctx context.Context, opts ...puzzles.RunOption) context.Context
- func ContextWithSession(ctx context.Context, session string) context.Context
- func OptionsFromContext(ctx context.Context) []puzzles.RunOption
- func Run(ctx context.Context, year, day string) (puzzles.Result, error)
- func SessionFromContext(ctx context.Context) string
Constants ¶
This section is empty.
Variables ¶
ErrUnauthorized returns when session is empty or invalid.
Functions ¶
func ContextWithOptions ¶
ContextWithOptions adds options to context.
func ContextWithSession ¶
ContextWithSession adds session to context.
func OptionsFromContext ¶
OptionsFromContext extracts options from context.
func SessionFromContext ¶
SessionFromContext extracts session from context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.