Versions in this module Expand all Collapse all v0 v0.0.4 Dec 18, 2020 v0.0.3 Jul 4, 2020 Changes in this version + const BaseURL + const ContestsURL + const LoginURL + type Client struct + Username string + func NewClient() (*Client, error) + func (cli *Client) FetchContest(id string) (*Contest, error) + func (cli *Client) FetchTask(id string, u string) (*Task, error) + func (cli *Client) LoadToken(token *Token) + func (cli *Client) Login(username string, password string) error + func (cli *Client) SaveToken() *Token + type Contest struct + ID string + Tasks []*Task + URL string + type Task struct + ID string + Testcases []*Testcase + URL string + type Testcase struct + Input string + Output string + type Token struct + Cookies []*http.Cookie + Username string