package
1.5.21
Repository: https://github.com/defacto2/server.git
Documentation: pkg.go.dev

# Packages

Package ext contains common filename extensions used by the file records.

# Functions

Clauses for ordering file record queries.
Description returns a HTML3 friendly file description.
Error renders a custom HTTP error page for the HTML3 sub-group.
FileHref creates a URL to link to the file download of the ID.
FileLinkPad adds whitespace padding after the hyperlinked filename.
Filename returns a truncated filename with to the w maximum width.
GlobTo returns the path to the template file.
ID returns the ID from the URL path.
LeadFS formats the file size to the fixed-width length w value.
LeadFSInt formats the file size to the fixed-width length w value.
Leading repeats the number of space characters.
LeadInt takes an int and returns it as a string, w characters wide with whitespace padding.
ListInfo returns the title and description for the RecordsBy grouping.
Navi returns a populated Navigate struct for pagination.
Pagi returns up to three page numbers for pagination links.
Query returns a slice of records based on the RecordsBy grouping.
QueryAsArt returns a slice of all the records filtered by "Digital + pixel art".
QueryAsDocument returns a slice of all the records filtered by "Document + text art".
QueryAsSoftware returns a slice of all the records filtered by "Software".
QueryByGroup returns a slice of all the records filtered by the group id, "by Group".
QueryByPlatform returns a slice of all the records filtered by the platform id, "by Platform and media".
QueryBySection returns a slice of all the records filtered by the section id, "by Category".
QueryEverything returns a slice of all the records, "Everything".
Routes for the /html3 sub-route group.
Sorter creates the query string for the sortable columns.
Sortings are the name and order of columns that the records can be ordered by.
TemplateFuncMap are a collection of mapped functions that can be used in a template.
Templates returns a map of the templates used by the HTML3 sub-group route.

# Constants

AsArt group records as art.
AsDocument group records as documents.
AsSoftware group records as software.
ByGroup groups the records by the distinct, group_brand_for file table column.
BySection groups records by the platform file table column.
BySection groups records by the section file table column.
Sort the records by the title.
Description ascending order.
Description descending order.
Everything displays all records from the file table.
Sort records by the filename.
Name ascending order.
Name descending order.
Posted ascending order.
Posted descending order.
Sort records by the record creation dated.
Prefix is the root path of the HTML3 router group.
Date published ascending order.
Date published descending order.
Sort records by the published year, month and day.
Sort records by the file size in byte units.
Size ascending order.
Size descending order.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

File record details.
Navigate handles offset and record limit pagination.
Sugared logger passthrough.

# Type aliases

RecordsBy are the record groupings.
Sort is the display name of column that can be used to sort and order the records.
No description provided by the author