Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContestName ¶
type ContestName int
const (
Atcoder ContestName = iota
)
func ContestNameString ¶
func ContestNameString(s string) (ContestName, error)
ContestNameString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func ContestNameValues ¶
func ContestNameValues() []ContestName
ContestNameValues returns all values of the enum
func (ContestName) IsAContestName ¶
func (i ContestName) IsAContestName() bool
IsAContestName returns "true" if the value is listed in the enum definition. "false" otherwise
func (ContestName) String ¶
func (i ContestName) String() string
type HttpClient ¶
type HttpClient interface {
Get(u string) (*HttpResponse, error)
}
type HttpResponse ¶
type HttpResponse struct {
Body []byte
}
type HttpResponseRepository ¶
type HttpResponseRepository interface {
Get(k Key, value interface{}) (*HttpResponse, error)
Save(k Key, value interface{}) error
}
Click to show internal directories.
Click to hide internal directories.