Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // file version not change, needn't load the file ErrNoNeedUpdate = errors.New("Version no change no need update") // line num of file larger than maxline configured ErrMaxLineExceed = errors.New("Max line exceed") // wrong meta info ErrWrongMetaInfo = 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.