utils

package
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: MIT Imports: 9 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateIcon

func GenerateIcon(salt string) image.Image

GenerateIcon アイコン画像を生成します

func GenerateSalt

func GenerateSalt() []byte

GenerateSalt 64bytesソルトを生成します

func HashPassword

func HashPassword(pass string, salt []byte) []byte

HashPassword パスワードをハッシュ化します

func MultiWriter

func MultiWriter(writers ...io.Writer) io.Writer

MultiWriter creates a writer that duplicates its writes to all the provided writers, similar to the Unix tee(1) command. io.MultiWriterとの違いはwritersがio.ErrClosedPipeを返す場合は処理を続行するという点

func RandAlphabetAndNumberString

func RandAlphabetAndNumberString(n int) string

RandAlphabetAndNumberString 指定した文字数のランダム英数字文字列を生成します

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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