Documentation
¶
Index ¶
- func Chk(err error)
- func JsonString(obj interface{}) string
- func ParseData(file string) interface{}
- type BoolSeq
- type DataSeq
- type DataSeqTp
- type DomainField
- type DomainParser
- type DomainStruct
- type DomainTp
- type DomainTpList
- type FilePath
- func (p FilePath) Exist() bool
- func (p FilePath) FileName() string
- func (p FilePath) FolderName() string
- func (p FilePath) FullPath() (string, error)
- func (p FilePath) Open() (*os.File, error)
- func (p FilePath) String() string
- func (p FilePath) UnixPath() string
- func (p FilePath) WindowsPath() string
- func (p FilePath) Writer() (*bufio.Writer, error)
- type FileUt
- func (p *FileUt) Exist(filename string) bool
- func (p *FileUt) FlushWrite(path, content string) int
- func (p *FileUt) FlushWriteBytes(path string, b []byte) int
- func (p *FileUt) MakeFile(dir, fileName string) (*os.File, error)
- func (p *FileUt) MkDir(dir string)
- func (p *FileUt) NewFilePath(s string) FilePath
- func (p *FileUt) ReadAll(path string) (string, error)
- func (p *FileUt) ReadLinesChannel(filePath string) (<-chan string, error)
- func (p *FileUt) ReadLinesSlice(path string) ([]string, error)
- func (p *FileUt) Remove(filename string) error
- func (p *FileUt) WriteLinesSlice(lines []string, path string) error
- type FloatSeq
- type ISeq
- type IntSeq
- type Parser
- type StringSeq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonString ¶
func JsonString(obj interface{}) string
Types ¶
type DataSeq ¶
func NewDataSeq ¶
func NewDataSeq() *DataSeq
type DomainField ¶
type DomainParser ¶
type DomainParser struct {
}
func (*DomainParser) Parse ¶
func (p *DomainParser) Parse(content string) *DomainStruct
type DomainStruct ¶
type DomainStruct struct {
Name string
FileName string
Fields []*DomainField
}
type DomainTpList ¶
type DomainTpList []DomainTp
type FileUt ¶
type FileUt struct {
}
func (*FileUt) FlushWrite ¶
func (*FileUt) NewFilePath ¶
func (*FileUt) ReadLinesChannel ¶
Click to show internal directories.
Click to hide internal directories.