common

package module
v0.0.0-...-6a587d9 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PoolSize int = 100

Functions

func CaesarCipher

func CaesarCipher(in string) string

Types

type User

type User struct {
	ID        int       `json:"id"`
	Username  string    `json:"username"`
	Name      string    `json:"name"`
	Sex       string    `json:"sex"`
	Address   string    `json:"address"`
	Mail      string    `json:"mail"`
	Birthdate time.Time `json:"birthdate"`
}

type Users

type Users []User

func GetUsers

func GetUsers(pool *pgxpool.Pool) (Users, error)

func (Users) MarshalEasyJSON

func (v Users) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Users) MarshalJSON

func (v Users) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Users) UnmarshalEasyJSON

func (v *Users) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Users) UnmarshalJSON

func (v *Users) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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