Documentation ¶
Index ¶
- func WithAccept(accept string) func(*Request)
- func WithAcceptLanguage(acceptLanguage string) func(*Request)
- func WithAllowType(allowType []string) func(*Request)
- func WithLimit(limit int64) func(*Request)
- func WithUserAgent(userAgent string) func(*Request)
- type Client
- type ClientOpts
- type Option
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAccept ¶
func WithAcceptLanguage ¶
func WithAllowType ¶
func WithUserAgent ¶
Types ¶
type Client ¶
func NewClient ¶
func NewClient(c ClientOpts) *Client
NewClient は Client を作成する
プライベートIPを許可する場合は http.DefaultClient を返し、 許可しない場合は独自の Client を返す
type ClientOpts ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) GetHtmlNode ¶
GetHtmlNode は指定の url から Body を取得し、 html.Node を返す
Click to show internal directories.
Click to hide internal directories.