utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

* @Author: your name * @Date: 2021-10-22 10:09:08 * @LastEditTime: 2021-10-22 13:18:40 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: \yecron\pkg\utils\utils.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStr

func AddStr(sep string, args ...interface{}) string

func FormatDatetimeStr

func FormatDatetimeStr(t time.Time) string

func FormatNowStr

func FormatNowStr() string

func GetUUID

func GetUUID() string

获取一个UUID

func Sha1Code

func Sha1Code(str string) string

对字符串进行SHA哈希

func Stru2Json

func Stru2Json(j interface{}) string

func Time2LongTime

func Time2LongTime(t time.Time) time.Time

func WriteLogErr

func WriteLogErr(str string)

func WriteLogInfo

func WriteLogInfo(str string)

func WriteLogsInfo

func WriteLogsInfo(args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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