util

package
v0.0.0-...-639e356 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToHexStr

func BytesToHexStr(bs []byte) string

func CalcSHA

func CalcSHA(content []byte) string

func CreateDir

func CreateDir(path string) error

func CreateFile

func CreateFile(path string) (*os.File, error)

func FindInBytes

func FindInBytes(bs []byte, c byte, start int) int

func FindInRunes

func FindInRunes(rs []rune, c rune, start int) int

func HexStrToBytes

func HexStrToBytes(hexStr string) []byte

func IsDir

func IsDir(path string) (bool, error)

func IsEmptyDir

func IsEmptyDir(path string) (bool, error)

func IsExist

func IsExist(path string) (bool, error)

func ObjectIn

func ObjectIn(collect interface{}, obj interface{}) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL