real

package
v0.0.0-...-c234f5e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retriever

type Retriever struct {
	UserAgent string
	TimeOut   time.Duration
}

func (*Retriever) Get

func (r *Retriever) Get(url string) string

Get 实现者, 实现者不需要说他自己实现了哪个接口, 使用者规定了, 我这个必须有Get方法 这里这个类型 r *Retriever 是实现者要传给 接口的类型

Jump to

Keyboard shortcuts

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