Documentation ¶
Index ¶
- Constants
- func AllowCapitalGenerateSlice(str string) (words []string)
- func BigCamelCase2SmallCamelCase(str string) string
- func CamelCase2Underline(str string) string
- func ConvertToBigCamelCase(str string) string
- func ConvertToSmallCamelCase(str string) string
- func Factorial(n uint64) (result uint64)
- func FactorialSliceOfUint64(max uint64) (factorial []uint64)
- func Fib(n int) (res int)
- func FibSliceOfInt(max int) (slice []int)
- func FunctionEnd() (duration time.Duration)
- func FunctionStart()
- func GenerateSectionIntSliceOfDisorderly(min, max int) []int
- func GenerateSectionIntSliceOfOrderly(min, max int, step int) []int
- func GetWordsFormString(str string) (words []string)
- func JoinItemOfStringSlice(delimit string, slice ...string) (joined string)
- func Random(min, max int) int
- func SmallCamelCase2BigCamelCase(str string) string
- func Underline2BigCamelCase(str string) string
- func Underline2SmallCamelCase(str string) string
- type Mailer
- type MailerParams
Constants ¶
View Source
const (
Underline = "_" // 下划线
)
Variables ¶
This section is empty.
Functions ¶
func AllowCapitalGenerateSlice ¶
AllowCapitalGenerateSlice 将传递参数 str 通过单词首字母大写,进行分割返回全小写单词切片
func BigCamelCase2SmallCamelCase ¶
BigCamelCase2SmallCamelCase 使用大驼峰转小驼峰
func CamelCase2Underline ¶
CamelCase2Underline 使用驼峰转下划线生成标记
func ConvertToBigCamelCase ¶
ConvertToBigCamelCase 转换为大驼峰命令法
func ConvertToSmallCamelCase ¶
ConvertToSmallCamelCase 转换为小驼峰命令法
func FactorialSliceOfUint64 ¶
生成指定范围内的正整数阶乘切片
func GenerateSectionIntSliceOfDisorderly ¶
生成指定范围内的无序整型切片
func GenerateSectionIntSliceOfOrderly ¶
生成指定范围内的有序整型切片
func GetWordsFormString ¶
GetWordsFormString 获取 str 中的单词
func JoinItemOfStringSlice ¶
使用指定的定界符连接字符串切片值
func SmallCamelCase2BigCamelCase ¶
SmallCamelCase2BigCamelCase 使用小驼峰转大驼峰
func Underline2BigCamelCase ¶
Underline2BigCamelCase 下划线转换为大驼峰
func Underline2SmallCamelCase ¶
Underline2SmallCamelCase 下划线转换为小驼峰
Types ¶
type MailerParams ¶
type MailerParams struct { ServerHost string // ServerHost 邮箱服务器地址,如腾讯邮箱为 smtp.qq.com ServerPort int // ServerPort 邮箱服务器端口,如腾讯邮箱为 465 FromName string // 发件人名称 FromEmail string // 发件人邮箱地址 FromPassword string // 发件人邮箱密码 Toers []string // 接收者邮件地址,可以添加多个 CCers []string // 抄送者邮件地址,可以添加多个 }
发送邮件配置参数
Source Files ¶
Click to show internal directories.
Click to hide internal directories.