tools

package
v0.4.22 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEffectiveDir added in v0.4.17

func IsEffectiveDir(path string) bool

func IsNilObject

func IsNilObject(object interface{}) bool

IsNilObject 判断是否空对象

func IsNotNil

func IsNotNil(object interface{}) bool

IsNotNil 判断是否nil

func IsRegularFile added in v0.4.17

func IsRegularFile(name string) bool

IsRegularFile 是否普通文档

func JsonFileUnmarshalHelper added in v0.4.17

func JsonFileUnmarshalHelper(file string, desc interface{}) (err error)

JsonFileUnmarshalHelper 打开文件并且序列化到结构体, 方便关闭文件

func ListFileInDirWithSuffix added in v0.4.17

func ListFileInDirWithSuffix(root string, suffix string) ([]string, error)

func ParseIp added in v0.4.4

func ParseIp(addrWithPort string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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