Discover Packages
github.com/kosatka-cms/kosatka
pkg
embedtag
package
Version:
v0.1.4
Opens a new window with list of versions in this module.
Published: Nov 8, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package embedtag reads the embed tags of a text: [[<kind>:<name>]]
stands for something embedded in its place when the text is shown (a
block, a View's list), and is left out of the text's excerpts.
Replace returns s with each tag replaced by what repl returns for it
(ok=false - the tag stays as written).
Strip - s without its tags: an excerpt shows the text, not them.
type Tag struct {
Kind, Name string
}
Tag - one embed tag: what kind of thing it embeds and its name (a
machine name or an ID).
Parse reads s, "<kind>:<name>" (a template's form, without the
brackets) or a whole tag.
String - the tag as written.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.