ch04

package
v0.0.0-...-e0f2298 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

自己实现append函数 author: baoqiang time: 2019/2/27 下午8:28

自动转义 author: baoqiang time: 2019/3/4 下午8:34

统计字符个数 author: baoqiang time: 2019/3/4 下午6:53

map实现set去除重复行 author: baoqiang time: 2019/3/4 下午6:42

嵌套的结构体 author: baoqiang time: 2019/3/4 下午7:26

github search author: baoqiang time: 2019/3/4 下午8:08

多层map author: baoqiang time: 2019/3/4 下午7:04

render issues as html author: baoqiang time: 2019/3/4 下午8:47

模板格式化 author: baoqiang time: 2019/3/4 下午8:32

json author: baoqiang time: 2019/3/4 下午7:56

slice的底层操作 author: baoqiang time: 2019/3/4 下午6:23

反转数组 author: baoqiang time: 2019/2/27 下午8:20

字符数组的相等性判断 author: baoqiang time: 2019/2/27 下午8:13

树结构 author: baoqiang time: 2019/3/4 下午7:11

Index

Constants

View Source
const IssueURL = "https://api.github.com/search/issues"

Variables

This section is empty.

Functions

func CountChar

func CountChar()

func Dedup

func Dedup()

func RunAppendInt

func RunAppendInt()

func RunAutoEscape

func RunAutoEscape()

<p>A: &lt;b&gt;Hello!&lt;/b&gt;</p><p>B: <b>Hello!</b></p>

func RunEmbed

func RunEmbed()

func RunIssueHtml

func RunIssueHtml()

func RunJson

func RunJson()

func RunNonempty

func RunNonempty()

func RunReverse

func RunReverse()

func RunSearchIssues

func RunSearchIssues()

func RunSha256

func RunSha256()

func RunTextTemplate

func RunTextTemplate()

func RunTreeSort

func RunTreeSort()

func TreeSort

func TreeSort(values []int)

Types

type Circle

type Circle struct {
	Point  Point
	Radius int
}

type Issue

type Issue struct {
	Number    int
	HTMLURL   string `json:"html_url"`
	Title     string
	State     string
	User      *User
	CreatedAt time.Time `json:"created_at"`
	Body      string    // in Markdown format
}

type IssuesSearchResult

type IssuesSearchResult struct {
	TotalCount int `json:"total_count"`
	Items      []*Issue
}

func SearchIssues

func SearchIssues(terms []string) (*IssuesSearchResult, error)

type Movie

type Movie struct {
	Title  string
	Year   int  `json:"released"`
	Color  bool `json:"color,omitempty"`
	Actors []string
}

type Point

type Point struct {
	X, Y int
}

type User

type User struct {
	Login   string
	HTMLURL string `json:"html_url"`
}

type Wheel

type Wheel struct {
	Circle Circle
	Spokes int
}

Jump to

Keyboard shortcuts

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