file

package
v0.0.0-...-f3e9082 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectPath = "" // 项目文件存放位置
)

Variables

This section is empty.

Functions

func ReadFromJson

func ReadFromJson(filename string, obj interface{}) error

ReadFromJson 读取指定文件,并解析JSON到指定的结构体中 如果没有文件,则会返回空值,并创建文件

func SaveAsJson

func SaveAsJson(filename string, obj interface{}) error

SaveAsJson 将结构体以JSON的形式存到指定文件中

Types

This section is empty.

Jump to

Keyboard shortcuts

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