file

package
v0.0.0-...-0cd90d5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InIntSliceSortedFunc

func InIntSliceSortedFunc(stack []int) func(int) bool

func ParserContent

func ParserContent(dason []byte) ([]*TreeStruct, error)

func ParserIniContent

func ParserIniContent(data []byte) ([]*TreeStruct, error)

* *parser ini conf file *desc: *[test] * [..params] * name:name1 * key:value * [...params] * name:name2 * key:value

func ParserJsonContent

func ParserJsonContent(data []byte) ([]*TreeStruct, error)

func ParserYamlContent

func ParserYamlContent(data []byte) ([]*TreeStruct, error)

Types

type File

type File struct {
	// contains filtered or unexported fields
}

* *file struct

func FileInstance

func FileInstance(name string) (*File, error)

func (*File) BackupFile

func (this *File) BackupFile(dstFile string) (res int64, err error)

func (*File) GetContent

func (this *File) GetContent() []*TreeStruct

func (*File) GetDataType

func (this *File) GetDataType() int

func (*File) Parser

func (this *File) Parser(objType int) error

* * 解析数据,将数据解析成树形结构进行存储

func (*File) SetDataType

func (this *File) SetDataType() (dataType int)

Jump to

Keyboard shortcuts

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