config

package
v0.0.0-...-c0334d6 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

* [file desc] * author: CC * email : 151503324@qq.com * date : 2017.06.17

* [file desc] * author: CC * email : 151503324@qq.com * date : 2017.06.17

* handle json file. * author: CC * email : 151503324@qq.com * date : 2017.06.17

Index

Constants

View Source
const JSON string = "json"

Variables

This section is empty.

Functions

func Read

func Read(fn string, ft string, reply interface{}) error

read json data from file. * param fn: file name. * param ft: file type. (example: json, xlsx, txt, ...) * param reply: read data. * return: function error info.

func Write

func Write(fn string, ft string, data interface{}) error

write json data from file. * param fn: file name. * param ft: file type. (example: json, xlsx, txt, ...) * param data: write data. * return: function error info.

Types

This section is empty.

Jump to

Keyboard shortcuts

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