aboutsummaryrefslogtreecommitdiff
path: root/cmd/within.website
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-04-26 19:47:00 -0400
committerXe Iaso <me@xeiaso.net>2025-04-26 19:47:00 -0400
commitb02d2ba479446de6f38fce1e25cec8564ef9010a (patch)
treea60d001dda18187552591f70224bea38cc2000de /cmd/within.website
parent4d27a5e7c416e2a6cab039684037681cdac63a19 (diff)
downloadx-b02d2ba479446de6f38fce1e25cec8564ef9010a.tar.xz
x-b02d2ba479446de6f38fce1e25cec8564ef9010a.zip
chore(templ): fix go generate commands
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/within.website')
-rw-r--r--cmd/within.website/html_templ.go56
-rw-r--r--cmd/within.website/main.go2
2 files changed, 36 insertions, 22 deletions
diff --git a/cmd/within.website/html_templ.go b/cmd/within.website/html_templ.go
index 7218f8a..55a912e 100644
--- a/cmd/within.website/html_templ.go
+++ b/cmd/within.website/html_templ.go
@@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
-// templ: version: v0.2.731
+// templ: version: v0.3.857
package main
//lint:file-ignore SA4006 This context is only used if a nested component is present.
@@ -11,6 +11,9 @@ import templruntime "github.com/a-h/templ/runtime"
func BotInfo() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+ if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+ return templ_7745c5c3_CtxErr
+ }
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
@@ -26,17 +29,20 @@ func BotInfo() templ.Component {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p>Hello, if you are reading this, you have found this URL in your access logs.</p><p>If one of these programs is doing something you don't want them to do, please <a href=\"https://xeiaso.net/contact\">contact me</a> or open an issue <a href=\"https://github.com/Xe/x\">here</a>.</p>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<p>Hello, if you are reading this, you have found this URL in your access logs.</p><p>If one of these programs is doing something you don't want them to do, please <a href=\"https://xeiaso.net/contact\">contact me</a> or open an issue <a href=\"https://github.com/Xe/x\">here</a>.</p>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
func NotFound() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+ if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+ return templ_7745c5c3_CtxErr
+ }
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
@@ -52,11 +58,11 @@ func NotFound() templ.Component {
templ_7745c5c3_Var2 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p>The URL you requested could not be found. Please check your URL and hang up to try your call again.</p>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "<p>The URL you requested could not be found. Please check your URL and hang up to try your call again.</p>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
@@ -67,6 +73,9 @@ func anchor(name string) string {
func Index(repos []Repo) templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+ if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+ return templ_7745c5c3_CtxErr
+ }
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
@@ -82,12 +91,12 @@ func Index(repos []Repo) templ.Component {
templ_7745c5c3_Var3 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<img src=\"https://pride-badges.pony.workers.dev/static/v1?label=enbyware&amp;labelColor=%23555&amp;stripeWidth=8&amp;stripeColors=FCF434%2CFFFFFF%2C9C59D1%2C2C2C2C\"><p>This vanity domain houses a lot of <a href=\"https://xeiaso.net\">Xe Iaso's</a> custom Go packages. Here is a list of all of the packages currently tracked:</p><ul>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "<img src=\"https://pride-badges.pony.workers.dev/static/v1?label=enbyware&amp;labelColor=%23555&amp;stripeWidth=8&amp;stripeColors=FCF434%2CFFFFFF%2C9C59D1%2C2C2C2C\"><p>This vanity domain houses a lot of <a href=\"https://xeiaso.net\">Xe Iaso's</a> custom Go packages. Here is a list of all of the packages currently tracked:</p><ul>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
for _, repo := range repos {
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<li><a href=\"")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, "<li><a href=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -96,7 +105,7 @@ func Index(repos []Repo) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 5, "\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -109,17 +118,17 @@ func Index(repos []Repo) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</a></li>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 6, "</a></li>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</ul>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "</ul>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
for _, repo := range repos {
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<h2 id=\"")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, "<h2 id=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -132,7 +141,7 @@ func Index(repos []Repo) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -145,7 +154,7 @@ func Index(repos []Repo) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</h2><p><a href=\"")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 10, "</h2><p><a href=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -154,7 +163,7 @@ func Index(repos []Repo) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"><img src=\"")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, "\"><img src=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -167,7 +176,7 @@ func Index(repos []Repo) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\" alt=\"GoDoc\"></a> <a href=\"")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 12, "\" alt=\"GoDoc\"></a> <a href=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -176,7 +185,7 @@ func Index(repos []Repo) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\"><img alt=\"Source code link\" src=\"https://img.shields.io/badge/source-link-green\"></a></p><p>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 13, "\"><img alt=\"Source code link\" src=\"https://img.shields.io/badge/source-link-green\"></a></p><p>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -189,7 +198,7 @@ func Index(repos []Repo) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</p><code><pre>go get within.website/")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 14, "</p><code><pre>go get within.website/")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -202,18 +211,21 @@ func Index(repos []Repo) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</pre></code>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, "</pre></code>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
- return templ_7745c5c3_Err
+ return nil
})
}
func footer() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+ if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+ return templ_7745c5c3_CtxErr
+ }
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
@@ -229,10 +241,12 @@ func footer() templ.Component {
templ_7745c5c3_Var13 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p>Need help with these packages? Inquire <a href=\"https://github.com/Xe\">Within</a>.</p>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 16, "<p>Need help with these packages? Inquire <a href=\"https://github.com/Xe\">Within</a>.</p>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
+
+var _ = templruntime.GeneratedTemplate
diff --git a/cmd/within.website/main.go b/cmd/within.website/main.go
index 552d917..28e54ad 100644
--- a/cmd/within.website/main.go
+++ b/cmd/within.website/main.go
@@ -62,7 +62,7 @@ func (r Repo) RegisterHandlers(mux *http.ServeMux, lg *slog.Logger) {
lg.Debug("registered repo handler", "repo", r)
}
-//go:generate go run github.com/a-h/templ/cmd/templ@latest generate
+//go:generate go tool templ generate
func main() {
internal.HandleStartup()