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

# Functions

AlertURL returns the VirusTotal URL for the security alert for the file record.
AttrArtist returns the attributed artist names for the file record.
AttrMusic returns the attributed musician names for the file record.
AttrProg returns the attributed programmer names for the file record.
AttrWriter returns the attributed text writer names for the file record.
Basename returns the name of the file given to the artifact file record.
Checksum returns the strong SHA386 hash checksum for the file record.
Comment returns the optional comment for the file record.
Date returns a formatted date string for the published date for the artifact.
Dates returns the year, month and day for the published date for the artifact.
Description returns a human readable description for the artifact.
DownloadID returns the obfuscated ID for the file record.
EmbedReadme returns false if a text file artifact should not be displayed in the page as a readme or textfile.
ExtraZip returns true if the file record has repacked zip file offering in the extra directory.
FileEntry returns the created and updated date and time for the file record using the "time ago" format.
FirstHeader returns the title of the file, unless the artifact is marked as a magazine issue, in which case it returns the issue number.
Idenfication16C returns the 16 color identification for the file record.
IdenficationDZ returns the Demozoo production ID for the file record.
IdenficationGitHub returns the GitHub repository for the file record.
IdenficationPouet returns the Pouet production ID for the file record.
IdenficationYT returns the YouTube video watch ID for the file record.
JsdosArchive returns true if the file record is a known MS-DOS archive file.
JsdosBroken returns true if the MsDos artifact is known to be incompatible with the js-dos emulator.
JsdosCPU returns the js-dos CPU type for the file record.
JsdosMachine returns the js-dos machine type for the file record.
JsdosMemory returns true if js-dos should disable the XMS, EMS and UMB memory options.
JsdosRun returns the program name or sequence of commands to launch in the js-dos emulator.
JsdosSound returns the js-dos sound card or built-in audio for the file record.
JsdosUsage returns true if the js-dos emulator should be used with the filename.
jsdosUse returns true if the file record is a known, MS-DOS executable.
JsdosUtilities returns true the js-dos emulator should also load the utilities archive as an internal hard disk drive.
LastModification returns the last modified date and time for the file record.
LastModificationAgo returns the last modified date in a human readable format.
LastModificationDate returns the last modified date for the file record.
LastModifications returns the year, month and day for the last modified date for the file record.
LegacyString returns a string that is converted to UTF-8 if it is not already.
LinkPreview returns a URL path to link to the file record in tab, to use as a preview.
LinkPreviewHref creates a URL path to link to the file record in tab, to use as a preview.
LinkPreviewTip returns a tooltip for the link preview.
LinkSVG returns an right-arrow SVG icon.
ListContent returns a list of the files contained in the archive file.
Magic returns the magic number or guessed file type for the file record.
Readme returns a guessed or suggested readme file name to use for the record.
RecordIsNew returns true if the file record is a new upload.
RecordOffline returns true if the file record is marked as offline.
RecordOnline returns true if the artifact file record is available for download.
RecordProblems returns a list of validation problems for the file record.
Relations returns the list of relationships for the file record.
RelationsStr returns the list of relationships for the file record as a string.
ReleaserPair returns the pair of releaser names for the file record.
TagCategory returns the "Tag as category" for the file record, which is used to group similar artifacts together.
TagProgram returns the "Programs or apps" for the file record, which is the platform or operating system the artifact is intended for.
Title returns the brief title of the file record or a issue number for a magazine.
UnID returns the universal unique ID for the file record commonly known as a UUID.
Websites returns the list of links for the file record.
WebsitesStr returns the list of links for the file record as a string.
ZipContent returns the archive content of the file download, or an empty string if not an archive file.

# Constants

No description provided by the author

# Structs

ListEntry is a struct for the directory item that is used to generate the HTML.