Documentation ¶
Index ¶
- func CleanDomain(domain string) string
- func CountFileLine(filename string) (line_num int)
- func DownloadFileProgress(url, filename string)
- func DownloadGithubRelease(repo string, localpath string, index string) []string
- func GetCurrentAbPath() string
- func GetCurrentAbPathByCaller() string
- func GetCurrentAbPathByExecutable() string
- func GetMysqlConnByGorm(username string, password string, host string, port string, dbname string) (db *gorm.DB)
- func GetRootDomain(domain string) string
- func Ip2Domain(ip string) []string
- func Ip2DomainAndWebWeight(ip string) (string, string, int)
- func Ip2DomainByDnsGrep(ip string) string
- func Ip2DomainByWebScancc(ip string) string
- func PushMsgByServerJ(serverj_key string, title string, content string)
- func ReadFileReturnStringSlice(filename string) []string
- func ReadSpecifiedLineInFile(filepath string, begin_line int, end_line int) []string
- func RemoveRepeatedElementInSlice(arr []string) []string
- func RemoveSpecifiedElementInStringSlice(slice []string, element string) []string
- func SimpleBlElementInStringSlice(stringL []string) []string
- func SortAMapOfStringAndIntByValue(m map[string]int, Order string) map[string]int
- func WebWeightByAiZhan(domain string) int
- func WriteSliceReturnRandomFilename(data_l []string) (filename string)
- type Assets
- type Data
- type InData
- type IpDomain
- type Reader
- type TooLTT
- type Trie
- type TrieOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanDomain ¶
func CountFileLine ¶
func DownloadFileProgress ¶
func DownloadFileProgress(url, filename string)
func DownloadGithubRelease ¶
func GetMysqlConnByGorm ¶
func GetRootDomain ¶
func Ip2DomainByDnsGrep ¶
func Ip2DomainByWebScancc ¶
func PushMsgByServerJ ¶
func ReadSpecifiedLineInFile ¶
func WebWeightByAiZhan ¶
Types ¶
type Trie ¶
type Trie interface { Filter(text string) (string, []string, bool) FindKeywords(text string) []string }
A Trie is a tree implementation that used to find elements rapidly.
type TrieOption ¶
type TrieOption func(trie *trieNode)
TrieOption defines the method to customize a Trie.
func WithMask ¶
func WithMask(mask rune) TrieOption
WithMask customizes a Trie with keywords masked as given mask char.
Source Files ¶
- count_file_line.go
- download_github_release.go
- get_abpath.go
- get_mysql_db_conn_by_gorm.go
- ip2_domain_and_web_weight.go
- push_msg_by_serverj.go
- read_file_return_string_slice.go
- read_specified_line_in_file.go
- remove_repeat_element_in_slice.go
- simple_bl_element_in_string_slice.go
- sorting_a_map_of_string_int_type_by_value.go
- write_slice_return_random_filename.go
Click to show internal directories.
Click to hide internal directories.