model

package
v0.0.0-...-c8bfaa4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAsDate

func FormatAsDate(t time.Time) string

FormatAsDate return a yyyy-mm-dd date

func ValidateUser

func ValidateUser(username, password string) bool

ValidateUser validate the username and password is valid or not

Types

type Login

type Login struct {
	Username string `form:"username" json:"username" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
}

Login is a simple type to contain username and password

Jump to

Keyboard shortcuts

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