utils

package
v0.0.0-...-895e632 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWTSecret = []byte("!!SECRET!!")

TODO move go env

Functions

func CurrentYear

func CurrentYear() int

func Format

func Format(str string) string

func GenerateJWT

func GenerateJWT(id int) string

func Proper

func Proper(str string) string

func YearsAgo

func YearsAgo(years int) int

Types

type Error

type Error struct {
	Errors map[string]interface{} `json:"errors"`
}

func AccessForbidden

func AccessForbidden() Error

func NewError

func NewError(err error) Error

func NotFound

func NotFound() Error

Jump to

Keyboard shortcuts

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