helpers

package
v0.0.0-...-5e14d7d Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstRecord

func FirstRecord(db *gorm.DB, dst interface{}) error

FirstRecord queries using the provided gorm.DB to get the first record returned and place it into dst. If nothing found, app.ErrNotFound will be returned.

func ParseForm

func ParseForm(r *http.Request, dst interface{}) error

ParseForm uses gorilla's schema package to decode a form submit request into a structure. dst should be a pointer to the destination structure that is populated by this parsing mechanism.

Types

This section is empty.

Jump to

Keyboard shortcuts

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