Help us shape the future of Go! Take the 2026 Go Developer Survey

web

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetchResult

type FetchResult struct {
	URL   string `json:"url"`
	Title string `json:"title"`
	Text  string `json:"text"`
}

FetchResult 是网页抓取结果。

func Fetch

func Fetch(rawURL string) (*FetchResult, error)

Fetch 抓取指定 URL 的网页内容,清洗后返回 markdown。

Jump to

Keyboard shortcuts

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