leetcodeapi

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 2 Imported by: 0

README

Leetcode API client

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Easy   Difficulty = "Easy"
	Medium            = "Medium"
	Hard              = "Hard"
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) QuestionDetail

func (c *Client) QuestionDetail(ctx context.Context, titleSlug string) (*Question, error)

type Difficulty

type Difficulty string

type Question

type Question struct {
	Title      string     `json:"title,omitempty"`
	TitleSlug  string     `json:"titleSlug,omitempty"`
	Difficulty Difficulty `json:"difficulty,omitempty"`
	TopicTags  []TopicTag `json:"topicTags,omitempty"`
}

type TopicTag

type TopicTag struct {
	Name string `json:"name,omitempty"`
	Slug string `json:"slug,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL