gov

package
v0.0.0-...-fbb1375 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GSpider

type GSpider struct{}

func (GSpider) Get

func (g GSpider) Get(uri string) (*http.Response, error)

Get http Get Method.

func (GSpider) HolidayDetail

func (g GSpider) HolidayDetail(year int) (*http.Response, error)

HolidayDetail 获取国务院关于某年的放假安排。

func (GSpider) MakeSearchURL

func (g GSpider) MakeSearchURL(info string) string

MakeSearchURL 生成搜索的url。

func (GSpider) SearchHoliday

func (g GSpider) SearchHoliday(year int) (*http.Response, error)

SearchHoliday 搜索放假安排。按年份。

func (GSpider) SearchHolidayUri

func (g GSpider) SearchHolidayUri(year int) (string, error)

Jump to

Keyboard shortcuts

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