utilities

package
v0.0.0-...-9fcd9d5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(path string) bool

Checks if file on path exists or not

func IsEmailValid

func IsEmailValid(email string) bool

A simple function, short for the built in mail.parse, this function is redundant but it is comfortable to use i gues.

func Md

func Md(str string) string

Md 5 string hasher for quick use, this is not safe for passwords because md5, but it is absolutely fine for session tokens.

Types

type Clock

type Clock interface {
	Now() time.Time
}

type NormalClock

type NormalClock struct{}

func (NormalClock) Now

func (c NormalClock) Now() time.Time

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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