gostruct

package
v0.0.0-...-145bb91 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Code generated converter. DO NOT EDIT!

Code generated converter. DO NOT EDIT!

Index

Constants

This section is empty.

Variables

View Source
var ManagerSingle = &Manager{
	Tables: make(map[string]*Table),
}
View Source
var TestSingle = new(TestFile)

Functions

func Init

func Init(path string) error

Init 设置文件所在目录,并加载数据

func Load

func Load(name string) error

Load 重新加载文件数据 name 文件名

Types

type ITable

type ITable interface {
	LoadJson(string) error
	LoadXlsx(string) error
}

type Manager

type Manager struct {
	Path   string
	Tables map[string]*Table
}

func (*Manager) Load

func (m *Manager) Load(name string) error

func (*Manager) Register

func (m *Manager) Register(name string, t ITable)

type Table

type Table struct {
	T   ITable
	MD5 string
}

type Test

type Test struct {
	Boolean    bool      // 布尔
	Name       string    // 字符串
	Int32      int32     // 整数32位
	Int64      int64     // 整数64位
	Int        int       // 整数
	Float32    float32   // 浮点数32位
	Float64    float64   // 浮点数64位
	Double     float64   // 浮点数64位
	ArrBool    []bool    // 布尔数组
	ArrString  []string  // 字符串数组
	ArrInt32   []int32   // 数字数组32
	ArrInt64   []int     // 数字数组64
	ArrInt     []int     // 数字数组
	ArrFloat32 []float32 // 浮点数数组32
	ArrFloat64 []float64 // 浮点数数组64
	ArrDouble  []float64 // 浮点数数组
}

type TestFile

type TestFile struct {
	Array []*Test
}

func (*TestFile) LoadJson

func (t *TestFile) LoadJson(p string) error

func (*TestFile) LoadXlsx

func (t *TestFile) LoadXlsx(p string) error

Jump to

Keyboard shortcuts

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