docs: add godoc comments to all exported functions and methods

This commit is contained in:
adman
2026-07-30 00:20:55 +02:00
parent 56c97a2b3f
commit 0d6b6e1ab9
50 changed files with 186 additions and 408 deletions
+1
View File
@@ -526,6 +526,7 @@ func replacePlaceholders(s string, values map[string]any) string {
return result
}
// PrettyPlaceholders parses a legacy formatted string with named placeholders replaced from the given map, returning a Component.
func PrettyPlaceholders(format string, placeholders map[string]any) *Component {
s := replacePlaceholders(format, placeholders)
return Pretty(s)