Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFile

func IsFile(filePath string) bool

    IsFile returns true if given path is a file, or returns false when it's a directory or does not exist.

    func IsSliceContainsStr

    func IsSliceContainsStr(sl []string, str string) bool

      IsSliceContainsStr returns true if the string exists in given slice, ignore case.

      func PathExists

      func PathExists(path string) bool

        PathExists return true if given path exist.

        func ReadFile

        func ReadFile(path string) string

          ReadFile 读取文件

          func Sha1f

          func Sha1f(filename string) (string, error)

            Sha1f return file sha1 encode

            Types

            This section is empty.

            Source Files