Documentation
¶
Index ¶
- Variables
- func ErrorHandler(w http.ResponseWriter, errval string, statusCode int)
- func Init()
- func LoadEnv(filename string) error
- func PasswordEncrypt(password []byte, cost int) ([]byte, error)
- func ValidateFormFields(userName, email, password string) error
- func ValidatePort() (string, error)
- type Message
Constants ¶
This section is empty.
Variables ¶
View Source
var Database *sql.DB
View Source
var (
GoogleClientID, GoogleClientSecret, GithubClientID, GithubClientSecret string
)
Functions ¶
func ErrorHandler ¶
func ErrorHandler(w http.ResponseWriter, errval string, statusCode int)
func ValidateFormFields ¶
ValidateInput checks for the validity of input values provided via the form.
func ValidatePort ¶
ValidatePort check for the validity of the choice of port used to run and access the program's server.
Types ¶
Click to show internal directories.
Click to hide internal directories.