Documentation ¶
Index ¶
- Constants
- func ArrayUnique(arr []string) []string
- func CopyFile(src, dst string) (int64, error)
- func DirCHeckAndMk(dir string)
- func DumpJson(filePath string, model interface{}) (bool, error)
- func ExistFile(path string) bool
- func FileExist(filePath string) bool
- func GetMd5(filePath string) string
- func GetPath() string
- func GetWd() string
- func IntToBytes(n int) []byte
- func LoadJson(filePath string, model interface{}) *interface{}
- func StrToBytes(s string) []byte
- func StrToMd5(str string) string
- func Tmd5() string
- func Walk(dirPath string) []string
- type FileHandler
Constants ¶
View Source
const FILEDIR = "/data/index/"
Variables ¶
This section is empty.
Functions ¶
func ArrayUnique ¶
func DirCHeckAndMk ¶
func DirCHeckAndMk(dir string)
func IntToBytes ¶
func StrToBytes ¶
Types ¶
type FileHandler ¶
type FileHandler struct {
// contains filtered or unexported fields
}
func (*FileHandler) ReadDocIdsArry ¶
func (fh *FileHandler) ReadDocIdsArry(start, len int64) []int64
从start下标读取len个int64
func (*FileHandler) WriteInt64 ¶
func (fh *FileHandler) WriteInt64(value, start int64) int64
指定的地方写入int64,不传就获取文件最后的下标
Click to show internal directories.
Click to hide internal directories.