Documentation
¶
Index ¶
- Variables
- func DetermineEncodingFromReader(r io.Reader) (encoding.Encoding, string, bool, error)
- func FormatText(text string) string
- func HTTPGetwithContext(ctx context.Context, URL string) (*http.Response, error)
- func MergeTitle(text, chapterTitle string) string
- func ToAbsoluteURL(baseURI, uri string) (string, error)
- func ToUTF8Encoding(r io.Reader) (io.Reader, string, bool, error)
- func URLHTMLToUTF8Encoding(URL string) (io.Reader, string, bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CloudClown string
View Source
var UserAgent string = "Mozilla/5.0 (Windows NT 10.0; rv:122.0) Gecko/20100101 Firefox/122.0"
Functions ¶
func DetermineEncodingFromReader ¶
DetermineEncodingFromReader 偵測 reader 的編碼
func HTTPGetwithContext ¶
HTTPGetwithContext 將 http.Get 加入 context
func ToAbsoluteURL ¶
ToAbsoluteURL 將 url 轉為絕對路徑
func ToUTF8Encoding ¶
ToUTF8Encoding 將 reader 轉換為 UTF8
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.