utils

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

* @Descripttion: * @version: * @Author: lfzxs@qq.com * @Date: 2023-08-28 16:51:14 * @LastEditors: lfzxs@qq.com * @LastEditTime: 2023-08-28 17:20:47

Index

Constants

View Source
const (
	// 结点idkey
	Nodeid_key = "nodeid"
	// 默认结点ID
	Default_nodeId = int64(1)
)

Variables

This section is empty.

Functions

func CreateSnowflakeID

func CreateSnowflakeID() (int64, error)

func CreateSnowflakeIDStr

func CreateSnowflakeIDStr() string

func LoadFileToEnv

func LoadFileToEnv(fileName string)

func Md5File

func Md5File(file io.Reader) (sum string, err error)

func PathExists added in v0.5.2

func PathExists(path string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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