utils

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package password contains functions to help generate random passwords

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChanToSlice

func ChanToSlice(ch interface{}) interface{}

func ContainString

func ContainString(s []string, e string) bool

func CreateFolder

func CreateFolder(folderName string)

create folder

func FileExists

func FileExists(name string) (bool, error)

func GeneratePassword

func GeneratePassword(minLength int, maxLength int) string

Generate returns a newly generated password

func IsAfterCurrentTime added in v1.0.11

func IsAfterCurrentTime(t time.Time) bool

func IsTimeEqualToday added in v1.0.11

func IsTimeEqualToday(t time.Time) bool

func StreamToByte

func StreamToByte(stream io.Reader) []byte

func StreamToString

func StreamToString(stream io.Reader) string

func WriteToken

func WriteToken(token *oauth2.Token)

Types

This section is empty.

Jump to

Keyboard shortcuts

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