Browse Source

docs: fix wording, typos, etc.

decentral1se 3 years ago
parent
commit
fba7d4cacf
No known key found for this signature in database GPG Key ID: 3789458B3D0C410
  1. 6
      distribusi.go

6
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>",

Loading…
Cancel
Save