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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址