Versions in this module Expand all Collapse all v0 v0.3.1 Jul 28, 2022 Changes in this version + const Bash + const C + const Clojure + const Cpp + const Cpp14 + const Csharp + const Elixir + const Erlang + const Golang + const Haskell + const Java + const Java15 + const Java8 + const JavaScript + const Kotlin + const ObjectiveC + const Perl + const Php + const Pypy + const Pypy3 + const Python + const Python3 + const Racket + const Ruby + const Rust + const Scala + const Swift + const TypeScript + func CookieJarFromMap(m map[string]string, url *url.URL) (http.CookieJar, error) + func CookieJarFromReader(reader io.Reader, url *url.URL, filter []string) (http.CookieJar, error) + func DecodeSolution(backend string, reader io.Reader) (*string, error) + func EncodeChallenge(backend string, lang Lang, filters Filters, challenge Challenge, ...) error + type BackendConfig struct + Csrf string + CsrfHeader string + Session string + type Challenge interface + Files func() (map[string]string, error) + Identify func() Filters + Prompt func() string + Snippet func(Lang) (string, error) + type Config struct + Backend map[string]BackendConfig + type ErrorReport struct + CtxHeader string + CtxMsg string + ErrorClass string + ErrorMsg string + func NewErrorReport(cls string, msg string, header string, content string) ErrorReport + type Filters struct + func ParseFilters(s string) *Filters + func (filters *Filters) AddFilter(name string, value string) error + func (filters *Filters) GetFilter(name string) (string, error) + func (filters *Filters) GetFilterOrDefault(name string) string + func (filters *Filters) Render(buf io.StringWriter) error + func (filters *Filters) Update(other *Filters) + type Lang struct + func ParseExt(ext string) (*Lang, error) + func ParseLang(s string) (*Lang, error) + func (lang *Lang) Comment() (string, string, string, string) + func (lang *Lang) Ext() string + func (lang *Lang) Is(s string) bool + func (lang *Lang) Pretty() string + func (lang *Lang) String() string + type Provider interface + Configure func(BackendConfig) error + FindNextChallenge func(Filters) (Filters, error) + GetChallenge func(Filters) (Challenge, error) + IsSignedIn func() (bool, error) + Submit func(Filters, Lang, string) (SubmissionReport, error) + type SubmissionReport interface + ErrorReport func() *ErrorReport + HasSucceeded func() bool + Identify func() string + Statistics func() SubmissionStatistics + type SubmissionStatistics struct + MaxScore string + Memory string + MemoryPercentile float64 + Runtime string + RuntimePercentile float64 + Score string + TotalTestCases uint64 + func NewStatistics() SubmissionStatistics + type TransportClient struct + CsrfToken string + CsrfTokenHeader string + func NewTransportClient(base url.URL) TransportClient + func (client *TransportClient) Do(method string, path string, input interface{}, output interface{}) error + func (client *TransportClient) DoQuery(operationName string, query string, variables interface{}, output interface{}) error + func (client *TransportClient) RawDo(r *http.Request) (*http.Response, error) + func (client *TransportClient) ResolveReference(path string) (*url.URL, error) + func (client *TransportClient) SetCookieJar(jar http.CookieJar) + func (client *TransportClient) SetCookies(cookies map[string]string) error v0.2.0 Nov 7, 2021