basedata

package
v0.0.0-...-b36d24e Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: MulanPSL-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectDataPath

func InjectDataPath(s *DataPath)

func LoadDataPath

func LoadDataPath() baseiface.ISingleton

Types

type DataPath

type DataPath struct {
	basedto.BaseEntitySingle
	RootDir      string
	DataPath     string
	DataInPath   string
	DataInPathEs string
	DataOutPath  string
	DataCode     string
	DataOutCc    string
}

func FindBeanDataPath

func FindBeanDataPath() *DataPath

FindBeanDataPath

func NewDataPath

func NewDataPath() *DataPath

func (*DataPath) MakePathNotExist

func (self *DataPath) MakePathNotExist() error

func (*DataPath) MakePaths

func (self *DataPath) MakePaths(paths ...string) error

func (*DataPath) ReadEsFile

func (this *DataPath) ReadEsFile(filename string) (string, error)

func (*DataPath) ReadFile

func (this *DataPath) ReadFile(filename string) (string, error)

func (*DataPath) WriteFile

func (this *DataPath) WriteFile(filename string, model any) error

func (*DataPath) WriteFiles

func (this *DataPath) WriteFiles(req any, res any) error

Jump to

Keyboard shortcuts

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