decentral1se
3 years ago
No known key found for this signature in database
GPG Key ID: 3789458B3D0C410
1 changed files with
3 additions and
3 deletions
-
distribusi.go
|
|
@ -102,16 +102,16 @@ var htmlBody = ` |
|
|
|
</html |
|
|
|
` |
|
|
|
|
|
|
|
// fileType is a file type identifiers, such as "image or "audio".
|
|
|
|
// fileType is a file type identifier such as "image" or "audio".
|
|
|
|
type fileType = string |
|
|
|
|
|
|
|
// subType is a more specific file type identifier comparsed to fileType such as "gif and "mp4".
|
|
|
|
// subType is a more specific file type identifier compared to fileType, such as "gif" and "mp4".
|
|
|
|
type subType = string |
|
|
|
|
|
|
|
// htmlTag is an appropriate html tag element for a specific fileType & subType.
|
|
|
|
type htmlTag = string |
|
|
|
|
|
|
|
// htmlTags is a mimetype to htmlTag mapping for generation purposes.
|
|
|
|
// htmlTags is a fileType/subType to htmlTag mapping for HTML generation purposes.
|
|
|
|
var htmlTags = map[fileType]map[subType]htmlTag{ |
|
|
|
"text": { |
|
|
|
"html": "<section id=\"%s\">%s</section>", |
|
|
|