Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
URL *url.URL
StartTime time.Time
Referrer *url.URL
Depth int
FilePath string // returned when the item is processed
}
Item is comparable
func (Item) ChangePath ¶ added in v1.4.0
type Result ¶
type Result struct {
Item
StatusCode int
References Refs
Excluded Refs
Location string // only used for 301-308 redirection
ContentLength int64
FileSize int64
Gzip bool
}
func (Result) IsRedirect ¶ added in v1.4.0
type Set ¶
type Set[T comparable] struct { // contains filtered or unexported fields }
Set contains distinct values of comparable type T. It can be accessed and altered concurrently.
Note that literals need empty values, so will be of the form
Set[int]{2: {}, 4: {}}
func NewSet ¶
func NewSet[T comparable](slice ...T) *Set[T]
NewSet creates a new set based on some optional initial values.
func (*Set[T]) AddIfAbsent ¶
AddIfAbsent adds val to the set if absent, returning true. Otherwise, it returns false.
Click to show internal directories.
Click to hide internal directories.