Documentation ¶
Index ¶
Constants ¶
View Source
const ( // The default order by field for the list function. OrderBy = "created_at" // The default order direction field for the list function. OrderDirection = "desc" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace defines the methods for users to be used as template functions.
func (*Namespace) Find ¶
func (ns *Namespace) Find(id interface{}) interface{}
Find
Obtains the user by ID and returns a domain.UserPart type or nil if not found.
Example: {{ user 123 }}
type Users ¶
type Users struct { Users domain.UsersParts Pagination *pagination.Pagination }
Categories defines the struct for returning categories and pagination back to the template.
Click to show internal directories.
Click to hide internal directories.