Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // file version not change, needn't load the file ERR_NO_NEED_UPDATE = errors.New("Version no change no need update") // line num of file larger than maxline configured ERR_MAX_LINE_EXCEED = errors.New("Max line exceed") // wrong meta info ERR_WRONG_META_INFO = errors.New("Wrong meta info") )
Functions ¶
This section is empty.
Types ¶
type TxtFileLoader ¶
type TxtFileLoader struct {
// contains filtered or unexported fields
}
func NewTxtFileLoader ¶
func NewTxtFileLoader(fileName string) *TxtFileLoader
func (TxtFileLoader) CheckAndLoad ¶
func (f TxtFileLoader) CheckAndLoad(curVersion string) (*ipdict.IPItems, error)
check Version num and load IP txt file to IP items in memory
Click to show internal directories.
Click to hide internal directories.