Documentation ¶
Index ¶
- func CleanHtml(str string, depth int) string
- func ConvertToString(src string, srcCode string, tagCode string) string
- func DecodeString(src, charset string) string
- func Deprive(s string) string
- func Deprive2(s string) string
- func DepriveBreak(s string) string
- func DepriveMutiBreak(s string) string
- func EncodeString(src, charset string) string
- func ExtractArticle(html string) string
- func Floor(f float64, n int) float64
- func GBKToUTF8(src string) string
- func GetHerf(baseurl string, url string, herf string, mustBase bool) string
- func HrefSub(src string, sub string) string
- func MakeUrl(path string, schemeAndHost ...string) (string, bool)
- func Ping(address string, timeoutSecond int) (alive bool, err error, timedelay time.Duration)
- func Pinger(address string, timeoutSecond int) error
- func ProcessHtml(html string) string
- func SplitCookies(cookieStr string) (cookies []*http.Cookie)
- func Unicode16ToUTF8(str string) string
- func UnicodeToUTF8(str string) string
- type Form
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeString ¶
func EncodeString ¶
func MakeUrl ¶
@SchemeAndHost https://www.baidu.com @path /search?w=x
func SplitCookies ¶
cookies字符串转[]*http.Cookie,(如"mt=ci%3D-1_0; thw=cn; sec=5572dc7c40ce07d4e8c67e4879a; v=0;")
func Unicode16ToUTF8 ¶
将`{"area":[["quanguo","\u5168\u56fd\u8054\u9500"]]}`转为`{"area":[["quanguo","全国联销"]]}`
func UnicodeToUTF8 ¶
将"咖啡色|绿色"转为"咖啡色|绿色"
Types ¶
type Form ¶
type Form struct {
// contains filtered or unexported fields
}
Form is the default form element.
func NewForm ¶
func NewForm(ctx *Context, rule string, u string, form *goquery.Selection, schemeAndHost ...string) *Form
NewForm creates and returns a *Form type.
Click to show internal directories.
Click to hide internal directories.