From 3bab9d3cc327933cb79cde9d839defd50f812528 Mon Sep 17 00:00:00 2001 From: Sylvain Rabot Date: Sun, 14 Jul 2024 14:15:32 +0200 Subject: [PATCH] Use a go.work for examples instead of go.mod's replace directive Signed-off-by: Sylvain Rabot --- .gitignore | 3 +++ examples/counter-basic/go.mod | 4 +--- examples/counter-basic/go.sum | 2 ++ examples/counter/go.mod | 4 +--- examples/counter/go.sum | 2 ++ examples/counter/lambda/main.go | 2 +- examples/external-libraries/go.mod | 4 +--- examples/external-libraries/go.sum | 2 ++ examples/go.work | 19 +++++++++++++++++++ examples/go.work.sum | 24 ++++++++++++++++++++++++ examples/integration-chi/go.mod | 4 +--- examples/integration-chi/go.sum | 2 ++ examples/integration-echo/go.mod | 5 ++--- examples/integration-echo/go.sum | 6 ++++-- examples/integration-gin/go.mod | 7 ++++--- examples/integration-gin/go.sum | 12 +++++++++++- examples/integration-go-echarts/go.mod | 4 ++-- examples/integration-go-echarts/go.sum | 10 ++++++---- examples/integration-gofiber/go.mod | 4 +--- examples/integration-gofiber/go.sum | 2 ++ examples/integration-react/go.mod | 4 +--- examples/integration-react/go.sum | 2 ++ examples/internationalization/go.mod | 7 ++++--- examples/internationalization/go.sum | 12 +++++++++++- examples/static-generator/go.mod | 4 +--- examples/static-generator/go.sum | 2 ++ examples/streaming/go.mod | 4 +--- examples/streaming/go.sum | 2 ++ examples/suspense/go.mod | 4 +--- examples/suspense/go.sum | 2 ++ examples/typescript/go.mod | 4 +--- examples/typescript/go.sum | 2 ++ go.mod | 3 --- storybook/_example/go.mod | 4 +--- 34 files changed, 122 insertions(+), 56 deletions(-) create mode 100644 examples/go.work create mode 100644 examples/go.work.sum diff --git a/.gitignore b/.gitignore index 0338edaa0..e3d000a66 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,6 @@ result # Go workspace. go.work +go.work.sum +!examples/go.work +!examples/go.work.sum diff --git a/examples/counter-basic/go.mod b/examples/counter-basic/go.mod index da715fd77..9ae2e4b62 100644 --- a/examples/counter-basic/go.mod +++ b/examples/counter-basic/go.mod @@ -4,8 +4,6 @@ go 1.21 toolchain go1.21.5 -require github.com/a-h/templ v0.2.233 +require github.com/a-h/templ v0.2.747 require github.com/alexedwards/scs/v2 v2.8.0 - -replace github.com/a-h/templ => ../../ diff --git a/examples/counter-basic/go.sum b/examples/counter-basic/go.sum index 611223620..e77b79524 100644 --- a/examples/counter-basic/go.sum +++ b/examples/counter-basic/go.sum @@ -1,3 +1,5 @@ +github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg= +github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4= github.com/alexedwards/scs/v2 v2.8.0 h1:h31yUYoycPuL0zt14c0gd+oqxfRwIj6SOjHdKRZxhEw= github.com/alexedwards/scs/v2 v2.8.0/go.mod h1:ToaROZxyKukJKT/xLcVQAChi5k6+Pn1Gvmdl7h3RRj8= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= diff --git a/examples/counter/go.mod b/examples/counter/go.mod index a143c45e5..75a5be86c 100644 --- a/examples/counter/go.mod +++ b/examples/counter/go.mod @@ -5,7 +5,7 @@ go 1.21 toolchain go1.21.5 require ( - github.com/a-h/templ v0.2.234-0.20230427112944-80f0dc03a8a8 + github.com/a-h/templ v0.2.747 github.com/akrylysov/algnhsa v1.1.0 github.com/aws/aws-cdk-go/awscdk/v2 v2.147.3 github.com/aws/aws-cdk-go/awscdklambdagoalpha/v2 v2.147.3-alpha.0 @@ -48,5 +48,3 @@ require ( golang.org/x/sys v0.21.0 // indirect golang.org/x/tools v0.22.0 // indirect ) - -replace github.com/a-h/templ => ../../ diff --git a/examples/counter/go.sum b/examples/counter/go.sum index feac4512b..536875834 100644 --- a/examples/counter/go.sum +++ b/examples/counter/go.sum @@ -1,5 +1,7 @@ github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0= github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg= +github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4= github.com/akrylysov/algnhsa v1.1.0 h1:G0SoP16tMRyiism7VNc3JFA0wq/cVgEkp/ExMVnc6PQ= github.com/akrylysov/algnhsa v1.1.0/go.mod h1:+bOweRs/WBu5awl+ifCoSYAuKVPAmoTk8XOMrZ1xwiw= github.com/aws/aws-cdk-go/awscdk/v2 v2.147.3 h1:7Wbi5d1f+RGn6fg9YzzMjD5D/rc/62zuFOtmJIed+B0= diff --git a/examples/counter/lambda/main.go b/examples/counter/lambda/main.go index 861f5a37b..91cdc16d3 100644 --- a/examples/counter/lambda/main.go +++ b/examples/counter/lambda/main.go @@ -13,7 +13,7 @@ import ( func main() { // Create handlers. - log := slog.New(slog.NewJSONHandler(os.Stderr)) + log := slog.New(slog.NewJSONHandler(os.Stderr, nil)) s, err := db.NewCountStore(os.Getenv("TABLE_NAME"), os.Getenv("AWS_REGION")) if err != nil { log.Error("failed to create store", slog.Any("error", err)) diff --git a/examples/external-libraries/go.mod b/examples/external-libraries/go.mod index 015ad442e..276537bf6 100644 --- a/examples/external-libraries/go.mod +++ b/examples/external-libraries/go.mod @@ -4,6 +4,4 @@ go 1.21 toolchain go1.21.5 -require github.com/a-h/templ v0.2.304 - -replace github.com/a-h/templ => ../../ +require github.com/a-h/templ v0.2.747 diff --git a/examples/external-libraries/go.sum b/examples/external-libraries/go.sum index 5a8d551d8..93900a4b9 100644 --- a/examples/external-libraries/go.sum +++ b/examples/external-libraries/go.sum @@ -1,2 +1,4 @@ +github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg= +github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/examples/go.work b/examples/go.work new file mode 100644 index 000000000..d34efaef2 --- /dev/null +++ b/examples/go.work @@ -0,0 +1,19 @@ +go 1.22.5 + +use ( + .. + ./counter + ./counter-basic + ./external-libraries + ./integration-chi + ./integration-echo + ./integration-gin + ./integration-go-echarts + ./integration-gofiber + ./integration-react + ./internationalization + ./static-generator + ./streaming + ./suspense + ./typescript +) diff --git a/examples/go.work.sum b/examples/go.work.sum new file mode 100644 index 000000000..9a2bbc4b8 --- /dev/null +++ b/examples/go.work.sum @@ -0,0 +1,24 @@ +github.com/a-h/protocol v0.0.0-20230224160810-b4eec67c1c22/go.mod h1:Gm0KywveHnkiIhqFSMZglXwWZRQICg3KDWLYdglv/d8= +github.com/a-h/templ v0.2.233/go.mod h1:h1DdzFMWVApvTcZBNmM6+mD6EPq6uYkncMNF7zdLj9I= +github.com/a-h/templ v0.2.234-0.20230427112944-80f0dc03a8a8/go.mod h1:3oc37WS5rpDvFGi6yeknvTKt50xCu67ywQsM43Wr4PU= +github.com/a-h/templ v0.2.304/go.mod h1:3oc37WS5rpDvFGi6yeknvTKt50xCu67ywQsM43Wr4PU= +github.com/a-h/templ v0.2.364/go.mod h1:6Lfhsl3Z4/vXl7jjEjkJRCqoWDGjDnuKgzjYMDSddas= +github.com/a-h/templ v0.2.501/go.mod h1:9gZxTLtRzM3gQxO8jr09Na0v8/jfliS97S9W5SScanM= +github.com/a-h/templ v0.2.513/go.mod h1:9gZxTLtRzM3gQxO8jr09Na0v8/jfliS97S9W5SScanM= +github.com/a-h/templ v0.2.663/go.mod h1:SA7mtYwVEajbIXFRh3vKdYm/4FYyLQAtPH1+KxzGPA8= +github.com/a-h/templ v0.2.707/go.mod h1:5cqsugkq9IerRNucNsI4DEamdHPsoGMQy99DzydLhM8= +github.com/a-h/templ v0.2.731/go.mod h1:IejA/ecDD0ul0dCvgCwp9t7bUZXVpGClEAdsqZQigi8= +github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/philhofer/fwd v1.1.2/go.mod h1:qkPdfjR2SIEbspLqpe1tO4n5yICnr2DY7mqEx2tUTP0= +github.com/tinylib/msgp v1.1.8/go.mod h1:qkpG+2ldGg4xRFmx+jfTvZPxfGFhi64BcnL9vkCm/Tw= +go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/telemetry v0.0.0-20240521205824-bda55230c457/go.mod h1:pRgIJT+bRLFKnoM1ldnzKoxTIn14Yxz928LQRYYgIN0= +golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0= +golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/examples/integration-chi/go.mod b/examples/integration-chi/go.mod index 46085e5f5..0a14dc220 100644 --- a/examples/integration-chi/go.mod +++ b/examples/integration-chi/go.mod @@ -3,8 +3,6 @@ module github.com/a-h/templ/examples/integration-chi go 1.21.1 require ( - github.com/a-h/templ v0.2.364 + github.com/a-h/templ v0.2.747 github.com/go-chi/chi/v5 v5.1.0 ) - -replace github.com/a-h/templ => ../../ diff --git a/examples/integration-chi/go.sum b/examples/integration-chi/go.sum index 8f1a88d5a..8a37314ee 100644 --- a/examples/integration-chi/go.sum +++ b/examples/integration-chi/go.sum @@ -1,3 +1,5 @@ +github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg= +github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4= github.com/go-chi/chi/v5 v5.1.0 h1:acVI1TYaD+hhedDJ3r54HyA6sExp3HfXq7QWEEY/xMw= github.com/go-chi/chi/v5 v5.1.0/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= diff --git a/examples/integration-echo/go.mod b/examples/integration-echo/go.mod index cf67a4bfe..af6abf249 100644 --- a/examples/integration-echo/go.mod +++ b/examples/integration-echo/go.mod @@ -5,7 +5,7 @@ go 1.21 toolchain go1.21.5 require ( - github.com/a-h/templ v0.2.663 + github.com/a-h/templ v0.2.747 github.com/labstack/echo/v4 v4.12.0 ) @@ -13,6 +13,7 @@ require ( github.com/labstack/gommon v0.4.2 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect + github.com/stretchr/testify v1.9.0 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/fasttemplate v1.2.2 // indirect golang.org/x/crypto v0.24.0 // indirect @@ -20,5 +21,3 @@ require ( golang.org/x/sys v0.21.0 // indirect golang.org/x/text v0.16.0 // indirect ) - -replace github.com/a-h/templ => ../../ diff --git a/examples/integration-echo/go.sum b/examples/integration-echo/go.sum index 43b3b805d..f0353bb76 100644 --- a/examples/integration-echo/go.sum +++ b/examples/integration-echo/go.sum @@ -1,3 +1,5 @@ +github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg= +github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= @@ -13,8 +15,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQD0Loo= diff --git a/examples/integration-gin/go.mod b/examples/integration-gin/go.mod index c51bbf1f5..c5d52e172 100644 --- a/examples/integration-gin/go.mod +++ b/examples/integration-gin/go.mod @@ -3,7 +3,7 @@ module github.com/a-h/templ/examples/integration-gin go 1.21.1 require ( - github.com/a-h/templ v0.2.663 + github.com/a-h/templ v0.2.747 github.com/gin-gonic/gin v1.10.0 ) @@ -20,6 +20,8 @@ require ( github.com/goccy/go-json v0.10.3 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/klauspost/cpuid/v2 v2.2.8 // indirect + github.com/kr/pretty v0.1.0 // indirect + github.com/kr/text v0.2.0 // indirect github.com/leodido/go-urn v1.4.0 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect @@ -33,7 +35,6 @@ require ( golang.org/x/sys v0.21.0 // indirect golang.org/x/text v0.16.0 // indirect google.golang.org/protobuf v1.34.2 // indirect + gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) - -replace github.com/a-h/templ => ../../ diff --git a/examples/integration-gin/go.sum b/examples/integration-gin/go.sum index aab20068c..07e674eb4 100644 --- a/examples/integration-gin/go.sum +++ b/examples/integration-gin/go.sum @@ -1,3 +1,5 @@ +github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg= +github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4= github.com/bytedance/sonic v1.11.9 h1:LFHENlIY/SLzDWverzdOvgMztTxcfcF+cqNsz9pK5zg= github.com/bytedance/sonic v1.11.9/go.mod h1:LysEHSvpvDySVdC2f87zGWf6CIKJcAvqab1ZaiQtds4= github.com/bytedance/sonic/loader v0.1.1 h1:c+e5Pt1k/cy5wMveRDyk2X4B9hF4g7an8N3zCYjJFNM= @@ -6,6 +8,7 @@ github.com/cloudwego/base64x v0.1.4 h1:jwCgWpFanWmN8xoIUHa2rtzmkd5J2plF/dnLS6Xd/ github.com/cloudwego/base64x v0.1.4/go.mod h1:0zlkT4Wn5C6NdauXdJRhSKRlJvmclQ1hhJgA0rcu/8w= github.com/cloudwego/iasm v0.2.0 h1:1KNIy1I1H9hNNFEEH3DVnI4UujN+1zjpuk6gwHLTssg= github.com/cloudwego/iasm v0.2.0/go.mod h1:8rXZaNYT2n95jn+zTI1sDr+IgcD2GVs0nlbbQPiEFhY= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -34,6 +37,12 @@ github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa02 github.com/klauspost/cpuid/v2 v2.2.8 h1:+StwCXwm9PdpiEkPyzBXIy+M9KUb4ODm0Zarf1kS5BM= github.com/klauspost/cpuid/v2 v2.2.8/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= +github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ= github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= @@ -78,8 +87,9 @@ golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/examples/integration-go-echarts/go.mod b/examples/integration-go-echarts/go.mod index b6ffd9f15..93a9ed879 100644 --- a/examples/integration-go-echarts/go.mod +++ b/examples/integration-go-echarts/go.mod @@ -5,8 +5,8 @@ go 1.21 toolchain go1.21.5 require ( - github.com/a-h/templ v0.2.529 + github.com/a-h/templ v0.2.747 github.com/go-echarts/go-echarts/v2 v2.4.0 ) -replace github.com/a-h/templ => ../../ +require github.com/stretchr/testify v1.9.0 // indirect diff --git a/examples/integration-go-echarts/go.sum b/examples/integration-go-echarts/go.sum index cd25d1abe..f33c58491 100644 --- a/examples/integration-go-echarts/go.sum +++ b/examples/integration-go-echarts/go.sum @@ -1,3 +1,5 @@ +github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg= +github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/go-echarts/go-echarts/v2 v2.4.0 h1:efD46dmAvaZEWrBHAGjE8cfDK48vvFTHz5N9VqW5rYc= @@ -6,7 +8,7 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -gopkg.in/yaml.v3 v3.0.0 h1:hjy8E9ON/egN1tAYqKb61G10WtihqetD4sz2H+8nIeA= -gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/examples/integration-gofiber/go.mod b/examples/integration-gofiber/go.mod index f8393618e..2fab6aafd 100644 --- a/examples/integration-gofiber/go.mod +++ b/examples/integration-gofiber/go.mod @@ -3,7 +3,7 @@ module github.com/a-h/templ/examples/integration-gofiber go 1.21 require ( - github.com/a-h/templ v0.2.501 + github.com/a-h/templ v0.2.747 github.com/gofiber/fiber/v2 v2.52.5 ) @@ -20,5 +20,3 @@ require ( github.com/valyala/tcplisten v1.0.0 // indirect golang.org/x/sys v0.21.0 // indirect ) - -replace github.com/a-h/templ => ../../ diff --git a/examples/integration-gofiber/go.sum b/examples/integration-gofiber/go.sum index c6694a52f..eda759b95 100644 --- a/examples/integration-gofiber/go.sum +++ b/examples/integration-gofiber/go.sum @@ -1,3 +1,5 @@ +github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg= +github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4= github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M= github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= github.com/gofiber/fiber/v2 v2.52.5 h1:tWoP1MJQjGEe4GB5TUGOi7P2E0ZMMRx5ZTG4rT+yGMo= diff --git a/examples/integration-react/go.mod b/examples/integration-react/go.mod index 5489bada4..73370c21c 100644 --- a/examples/integration-react/go.mod +++ b/examples/integration-react/go.mod @@ -2,6 +2,4 @@ module github.com/a-h/templ/examples/integration-react go 1.21 -require github.com/a-h/templ v0.2.513 - -replace github.com/a-h/templ => ../../ +require github.com/a-h/templ v0.2.747 diff --git a/examples/integration-react/go.sum b/examples/integration-react/go.sum index 5a8d551d8..93900a4b9 100644 --- a/examples/integration-react/go.sum +++ b/examples/integration-react/go.sum @@ -1,2 +1,4 @@ +github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg= +github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/examples/internationalization/go.mod b/examples/internationalization/go.mod index 60c9d97eb..40dec83c6 100644 --- a/examples/internationalization/go.mod +++ b/examples/internationalization/go.mod @@ -3,13 +3,14 @@ module github.com/a-h/templ/examples/internationalization go 1.21.5 require ( - github.com/a-h/templ v0.2.731 + github.com/a-h/templ v0.2.747 github.com/invopop/ctxi18n v0.8.1 ) require ( github.com/invopop/yaml v0.3.1 // indirect + github.com/kr/pretty v0.1.0 // indirect + github.com/kr/text v0.2.0 // indirect + gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) - -replace github.com/a-h/templ => ../../ diff --git a/examples/internationalization/go.sum b/examples/internationalization/go.sum index 16bc8f028..a20d988dc 100644 --- a/examples/internationalization/go.sum +++ b/examples/internationalization/go.sum @@ -1,3 +1,6 @@ +github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg= +github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= @@ -6,11 +9,18 @@ github.com/invopop/ctxi18n v0.8.1 h1:nfy5Mk6UfvLbGRBwpTi4T1g95+rmRo8bMllUmpCvVwI github.com/invopop/ctxi18n v0.8.1/go.mod h1:1Osw+JGYA+anHt0Z4reF36r5FtGHYjGQ+m1X7keIhPc= github.com/invopop/yaml v0.3.1 h1:f0+ZpmhfBSS4MhG+4HYseMdJhoeeopbSKbq5Rpeelso= github.com/invopop/yaml v0.3.1/go.mod h1:PMOp3nn4/12yEZUFfmOuNHJsZToEEOwoWsT+D81KkeA= +github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/examples/static-generator/go.mod b/examples/static-generator/go.mod index d74d03ef1..88f3a558d 100644 --- a/examples/static-generator/go.mod +++ b/examples/static-generator/go.mod @@ -5,7 +5,7 @@ go 1.21 toolchain go1.21.5 require ( - github.com/a-h/templ v0.2.233 + github.com/a-h/templ v0.2.747 github.com/gosimple/slug v1.14.0 ) @@ -13,5 +13,3 @@ require ( github.com/gosimple/unidecode v1.0.1 // indirect github.com/yuin/goldmark v1.7.4 ) - -replace github.com/a-h/templ => ../../ diff --git a/examples/static-generator/go.sum b/examples/static-generator/go.sum index 474519157..7cc063566 100644 --- a/examples/static-generator/go.sum +++ b/examples/static-generator/go.sum @@ -1,3 +1,5 @@ +github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg= +github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/gosimple/slug v1.14.0 h1:RtTL/71mJNDfpUbCOmnf/XFkzKRtD6wL6Uy+3akm4Es= diff --git a/examples/streaming/go.mod b/examples/streaming/go.mod index 1ecbbcc7e..345f36a22 100644 --- a/examples/streaming/go.mod +++ b/examples/streaming/go.mod @@ -2,6 +2,4 @@ module githbu.com/a-h/templ/examples/streaming go 1.21.5 -replace github.com/a-h/templ => ../../ - -require github.com/a-h/templ v0.2.707 +require github.com/a-h/templ v0.2.747 diff --git a/examples/streaming/go.sum b/examples/streaming/go.sum index 5a8d551d8..93900a4b9 100644 --- a/examples/streaming/go.sum +++ b/examples/streaming/go.sum @@ -1,2 +1,4 @@ +github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg= +github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/examples/suspense/go.mod b/examples/suspense/go.mod index 92bf26420..e417f27f9 100644 --- a/examples/suspense/go.mod +++ b/examples/suspense/go.mod @@ -2,6 +2,4 @@ module githbu.com/a-h/templ/examples/suspense go 1.21.5 -replace github.com/a-h/templ => ../../ - -require github.com/a-h/templ v0.2.707 +require github.com/a-h/templ v0.2.747 diff --git a/examples/suspense/go.sum b/examples/suspense/go.sum index 5a8d551d8..93900a4b9 100644 --- a/examples/suspense/go.sum +++ b/examples/suspense/go.sum @@ -1,2 +1,4 @@ +github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg= +github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/examples/typescript/go.mod b/examples/typescript/go.mod index 1176ace4b..2577d240d 100644 --- a/examples/typescript/go.mod +++ b/examples/typescript/go.mod @@ -2,6 +2,4 @@ module github.com/a-h/templ/examples/typescript go 1.21.5 -replace github.com/a-h/templ => ../../ - -require github.com/a-h/templ v0.0.0-00010101000000-000000000000 +require github.com/a-h/templ v0.2.747 diff --git a/examples/typescript/go.sum b/examples/typescript/go.sum index 5a8d551d8..93900a4b9 100644 --- a/examples/typescript/go.sum +++ b/examples/typescript/go.sum @@ -1,2 +1,4 @@ +github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg= +github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/go.mod b/go.mod index 8708add70..eb97bf782 100644 --- a/go.mod +++ b/go.mod @@ -36,6 +36,3 @@ require ( golang.org/x/net v0.24.0 // indirect golang.org/x/sys v0.21.0 // indirect ) - -// replace github.com/a-h/parse => /Users/adrian/github.com/a-h/parse -// replace github.com/a-h/protocol => /Users/adrian/github.com/a-h/protocol diff --git a/storybook/_example/go.mod b/storybook/_example/go.mod index 5bb7e82d0..1dae01bad 100644 --- a/storybook/_example/go.mod +++ b/storybook/_example/go.mod @@ -2,10 +2,8 @@ module github.com/a-h/templ/storybook/example go 1.20 -replace github.com/a-h/templ => ../../ - require ( - github.com/a-h/templ v0.0.0-00010101000000-000000000000 + github.com/a-h/templ v0.2.747 github.com/aws/aws-cdk-go/awscdk/v2 v2.25.0 github.com/aws/aws-cdk-go/awscdkapigatewayv2alpha/v2 v2.25.0-alpha.0 github.com/aws/aws-cdk-go/awscdkapigatewayv2integrationsalpha/v2 v2.25.0-alpha.0