utils

package
v0.0.0-...-3d0adf2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

====================================================

# Copyright (C)2019 All rights reserved. # # Author : domchan # Email : 814172254@qq.com # File Name : reg.go # Created : 2019/1/10 16:37 # Last Modified : 2019/1/10 16:37 # Describe : # # ====================================================

====================================================

# Copyright (C)2019 All rights reserved. # # Author : domchan # Email : 814172254@qq.com # File Name : time.go # Created : 2019/1/24 16:19 # Last Modified : 2019/1/24 16:19 # Describe : # # ====================================================

====================================================

# Copyright (C)2019 All rights reserved. # # Author : domchan # Email : 814172254@qq.com # File Name : uuid.go # Created : 2019/1/11 15:02 # Last Modified : 2019/1/11 15:02 # Describe : # # ====================================================

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustISO8601StrToUTCStr

func MustISO8601StrToUTCStr(s string) string

MustISO8601StrToUTCStr 将iso8601格式的字符串换成utc时间的标准格式, 如果转换失败就返回layout

func NowTimeStampStr

func NowTimeStampStr() string

NowTimeStampStr 获取当前时间的时间戳

func StrFromCurlyBraces

func StrFromCurlyBraces(s string) []string

StrFromCurlyBraces 从文本中获取${...}的值

func ValidateEmailAddr

func ValidateEmailAddr(s string) bool

ValidateEmailAddr 验证邮箱格式,符合返回true

func ValidatePhone

func ValidatePhone(s string) bool

ValidatePhone 验证手机号,符合就返回true

func ValidateUUIDV4

func ValidateUUIDV4(id string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL