Skip to content

dora-exku/go-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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))
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages