Documentation ¶
Index ¶
- 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 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 List2string(lst *list.List) string
- func List2stringBy(lst *list.List, sep string) string
- func LogList(lst *list.List)
- func ParseTemplateString(str string, vars interface{}) string
- func PrintList(lst *list.List)
- func RandomString(n int) string
- func SendEmailNotice(ctx context.Context, receivers, subject, msg string) error
- func Str2BoolPtr(s string) *bool
- func Str2Float64(in string) float64
- func Str2Int(in string) int
- func Str2Int64(in string) int64
- func Strtime2Int(datetime string) (timestamp int64)
- func Strtime2Time(datetime string) time.Time
- func ToStringWith(in any) (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 Client
- type Config
- type SendRequest
- type UnixTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolPtr2Str ¶
func Camel2Case ¶
func Capitalize ¶
func CheckQueryParamUsing ¶
func CheckQueryParamUsing(param *interface{}) (ok bool)
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 List2string ¶
func ParseTemplateString ¶
func RandomString ¶
func SendEmailNotice ¶
func Str2BoolPtr ¶
func Str2Float64 ¶
func Strtime2Int ¶
func Strtime2Time ¶
func ToStringWith ¶
func UcfirstCase2Camel ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
var (
DefaultEmailHelper *Client
)
func (*Client) SendEmail ¶
func (e *Client) SendEmail(req *SendRequest) error
type SendRequest ¶
Click to show internal directories.
Click to hide internal directories.