Documentation ¶
Index ¶
- Constants
- func Bool2Str(b bool) string
- func BoolPtr2Str(b *bool) string
- func Camel2Case(name string) string
- func Capitalize(str string) string
- func Case2Camel(name string) string
- func CheckQueryParamUsing(param *interface{}) (ok bool)
- func InjectStrTemplate(s *StrTemplate)
- func Int64ToLocalDateInt(sec int64) basemodel.LocalDateInt
- func Int64ToLocalDateIntPtr(sec int64) *basemodel.LocalDateInt
- func Int64ToLocalTimeInt(sec int64) basemodel.LocalTimeInt
- func Int64ToLocalTimeIntPtr(sec int64) *basemodel.LocalTimeInt
- func Int64ToLocalTimeIntUtcPtr(sec int64) *basemodel.LocalTimeUTCInt
- func Int64ToLocalTimeUtcInt(sec int64) basemodel.LocalTimeUTCInt
- func Inttime2Str(timestamp int64) string
- func Ip4() string
- func Lcfirst(str string) string
- func LcfirstCase2Camel(str string) string
- func List2Array(lst *list.List) []string
- func List2string(lst *list.List) string
- func List2stringBy(lst *list.List, sep string) string
- func LoadStrTemplate() baseiface.ISingleton
- func LogList(lst *list.List)
- func ParseTemplateString(str string, vars interface{}) string
- func PrintList(lst *list.List)
- func QuateStr(str string) string
- func RandomString(n int) string
- func Str2BoolPtr(s string) *bool
- func Str2Float64(in string) float64
- func Str2Int(in string) int
- func Str2Int32(in string) int32
- func Str2Int64(in string) int64
- func Strtime2Int(datetime string) (timestamp int64)
- func Strtime2Time(datetime string) time.Time
- func ToStringWith(in interface{}) (str string)
- func Ucfirst(str string) string
- func UcfirstCase2Camel(str string) string
- func UnzipStr(zipContent string) (originInfo []byte)
- func ZipStr(origin string) (content string)
- type Buffer
- type StrTemplate
- func (this *StrTemplate) Get(key string) string
- func (this *StrTemplate) ParseStr(str string, vars interface{}) string
- func (this *StrTemplate) ParseTemplate(bs string) string
- func (this *StrTemplate) ParseTemplateStr(str string, vars interface{}) (string, error)
- func (this *StrTemplate) Put(key, value string) *StrTemplate
- type UnixTime
Constants ¶
View Source
const ( VAR_KEY_FileName = "FileName" VAR_KEY_Description = "Description" VAR_KEY_Author = "Author" VAR_KEY_DATETIME = "DATETIME" )
Variables ¶
This section is empty.
Functions ¶
func BoolPtr2Str ¶
func Camel2Case ¶
func Capitalize ¶
func CheckQueryParamUsing ¶
func CheckQueryParamUsing(param *interface{}) (ok bool)
func InjectStrTemplate ¶
func InjectStrTemplate(s *StrTemplate)
func Int64ToLocalDateInt ¶
func Int64ToLocalDateInt(sec int64) basemodel.LocalDateInt
func Int64ToLocalDateIntPtr ¶
func Int64ToLocalDateIntPtr(sec int64) *basemodel.LocalDateInt
func Int64ToLocalTimeInt ¶
func Int64ToLocalTimeInt(sec int64) basemodel.LocalTimeInt
func Int64ToLocalTimeIntPtr ¶
func Int64ToLocalTimeIntPtr(sec int64) *basemodel.LocalTimeInt
func Int64ToLocalTimeIntUtcPtr ¶
func Int64ToLocalTimeIntUtcPtr(sec int64) *basemodel.LocalTimeUTCInt
func Int64ToLocalTimeUtcInt ¶
func Int64ToLocalTimeUtcInt(sec int64) basemodel.LocalTimeUTCInt
func Inttime2Str ¶
func LcfirstCase2Camel ¶
func List2Array ¶
func List2string ¶
func LoadStrTemplate ¶
func LoadStrTemplate() baseiface.ISingleton
func ParseTemplateString ¶
func RandomString ¶
func Str2BoolPtr ¶
func Str2Float64 ¶
func Strtime2Int ¶
func Strtime2Time ¶
func ToStringWith ¶
func ToStringWith(in interface{}) (str string)
func UcfirstCase2Camel ¶
Types ¶
type StrTemplate ¶
type StrTemplate struct { basedto.BaseEntity IfTest bool `json:"if_test"` FileKey string `json:"file_key"` Author string Datetime string FileName string Description string Vars map[string]interface{} }
func NewStrTemplate ¶
func NewStrTemplate() *StrTemplate
func (*StrTemplate) Get ¶
func (this *StrTemplate) Get(key string) string
func (*StrTemplate) ParseStr ¶
func (this *StrTemplate) ParseStr(str string, vars interface{}) string
func (*StrTemplate) ParseTemplate ¶
func (this *StrTemplate) ParseTemplate(bs string) string
func (*StrTemplate) ParseTemplateStr ¶
func (this *StrTemplate) ParseTemplateStr(str string, vars interface{}) (string, error)
func (*StrTemplate) Put ¶
func (this *StrTemplate) Put(key, value string) *StrTemplate
Click to show internal directories.
Click to hide internal directories.