Documentation
¶
Overview ¶
Package lirity
Index ¶
- Constants
- func Bytes(s string) (b []byte)
- func Close(c io.Closer)
- func DirSize(path string) (size int64, count int, err error)
- func String(b []byte) (s string)
- func Struct2Map(s interface{}) map[string]interface{}
- func Struct2MapWithTag(s interface{}, tagName string) map[string]interface{}
- type FileOrContent
- type Status
Constants ¶
View Source
const ( Exit = 1 << iota ResetTime )
Variables ¶
This section is empty.
Functions ¶
func Struct2Map ¶
func Struct2Map(s interface{}) map[string]interface{}
func Struct2MapWithTag ¶ added in v1.1.5
Types ¶
type FileOrContent ¶
type FileOrContent string
func (FileOrContent) IsPath ¶
func (f FileOrContent) IsPath() bool
IsPath returns true if the FileOrContent is a file path, otherwise returns false.
func (FileOrContent) Read ¶
func (f FileOrContent) Read() ([]byte, error)
func (FileOrContent) String ¶
func (f FileOrContent) String() string
type Status ¶ added in v1.1.5
type Status struct {
Flag int
}
Status 存储目前的状态
func (*Status) DeleteStatus ¶ added in v1.1.5
DeleteStatus 删除一种或者多种状态
func (*Status) NotHasStatus ¶ added in v1.1.5
NotHasStatus 是否不具有某些状态
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package client is a generated GoMock package.
|
Package client is a generated GoMock package. |
Package command
|
Package command |
Package mq
|
Package mq |
Package registry
|
Package registry |
Package variable
|
Package variable |
Click to show internal directories.
Click to hide internal directories.