utils

package module
v0.0.0-...-ac8944f Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 4 Imported by: 1

README

使用时需要删除 go.mod 中的replace语句

Documentation

Overview

* @Author : Symphony zhangleping@cezhiqiu.com * @Date : 2024-05-08 08:09:45 * @LastEditors : Symphony zhangleping@cezhiqiu.com * @LastEditTime : 2024-06-11 00:13:10 * @FilePath : /v2/go-common-v2-dh-utils/utils.go * @Description : * * Copyright (c) 2024 by 大合前研, All Rights Reserved.

Index

Constants

This section is empty.

Variables

View Source
var DebugMsgFlag = true

Functions

func DebugMsg

func DebugMsg(msg string) string

func GenerateAccessID

func GenerateAccessID(n int) (string, error)

生成随机的Access ID,长度为n

func GenerateAccessSecret

func GenerateAccessSecret() (string, error)

生成安全的Access Secret

func IsElementInSlice

func IsElementInSlice[T comparable](element T, slice []T) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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