utils

package
v0.0.0-...-a18d6c5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExist

func FileExist(path string) (bool, error)

FileExist 判断文件是否存在

func LoadJSONFile

func LoadJSONFile(filename string, res interface{}) error

LoadJSONFile 加载 Json 配置文件

func NewLogConverter

func NewLogConverter() io.Writer

func WriteJSONFile

func WriteJSONFile(filename string, data interface{}) error

WriteJSONFile 将json写入文件

Types

type LogConverter

type LogConverter struct{}

func (LogConverter) Write

func (pw LogConverter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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