go-util

module
v0.0.0-...-e802ced Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT

README

Go-Util golang 工具包

1. 介绍

Go-Util 是一个golang工具包,包含了一些常用的工具类,方便开发者使用。

2. 安装

go get github.com/dora-exku/go-util

使用

password

package main

import (
    "fmt"
    "github.com/chenyingdi/go-util/password"
)

func main() {
    // 生成密码 
    password1 := "secret"
    hashedPassword := password.MakePassword(password1)
    fmt.Println(hashedPassword)
    // 验证密码
    fmt.Println(password.CheckPassword(hashedPassword, password1))
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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