Documentation ¶
Index ¶
- func Convert2Float32(str string, dv float32) float32
- func DoSend(to []string, subject string, body string) error
- func Marshal(val any) (map[string]map[string]any, error)
- func MonitorErrorToEmail(subject string, body string) error
- func ReadAsNestedMap[T Numeric](filePath string, separator rune, fn func(v string, dv T) T, dv T) (map[string]map[string]T, error)
- func ToPrt[T any](i T) *T
- func ToVl[T any](i *T) T
- type Numeric
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert2Float32 ¶
func DoSend ¶ added in v0.2.8
DoSend @function: send @description: Email发送方法 @param: subject string, body string @return: error
func Marshal ¶
Marshal marshals the given val and returns the map that contains the fields. optional=another is not implemented, and it's hard to implement and not common used.
func MonitorErrorToEmail ¶ added in v0.2.8
MonitorErrorToEmail @function: MonitorErrorToEmail @description: 给email中间件错误发送邮件到指定邮箱 @param: subject string, body string @return: error
Types ¶
Click to show internal directories.
Click to hide internal directories.