mirror of
https://codeberg.org/scip/kleingebaeck.git
synced 2025-12-16 20:11:01 +01:00
re-orgainzied code a little, using go templates instead format string
This commit is contained in:
@@ -133,7 +133,7 @@
|
||||
.\" ========================================================================
|
||||
.\"
|
||||
.IX Title "KLEINGEBAECK 1"
|
||||
.TH KLEINGEBAECK 1 "2023-12-16" "1" "User Commands"
|
||||
.TH KLEINGEBAECK 1 "2023-12-17" "1" "User Commands"
|
||||
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
||||
.\" way too many mistakes in technical documents.
|
||||
.if n .ad l
|
||||
@@ -179,10 +179,11 @@ Format is simple:
|
||||
Be carefull if you want to change the template. The default one looks like this:
|
||||
.PP
|
||||
.Vb 1
|
||||
\& Title: %s\enPrice: %s\enId: %s\enCategory: %s\enCondition: %s\enCreated: %s\enBody:\en\en%s\en
|
||||
\& Title: {{.Title}}\enPrice: {{.Price}}\enId: {{.Id}}\enCategory: {{.Category}}\enCondition: {{.Condition}}\enCreated: {{.Created}}\en\en{{.Text}}\en
|
||||
.Ve
|
||||
.PP
|
||||
If you change it, include 7 times the '%s' format tag.
|
||||
You can left out certain fields and use any formatting you like. Refer
|
||||
to <https://pkg.go.dev/text/template> for details how to write a template.
|
||||
.SH "SETUP"
|
||||
.IX Header "SETUP"
|
||||
To setup the tool, you need to lookup your userid on
|
||||
|
||||
Reference in New Issue
Block a user