diff --git a/examples/chat/go.mod b/examples/chat/go.mod index aa6bae9..10cece9 100644 --- a/examples/chat/go.mod +++ b/examples/chat/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( github.com/go-chi/chi/v5 v5.1.0 github.com/google/uuid v1.6.0 - github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e + github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0 github.com/mattn/go-sqlite3 v1.14.23 github.com/puzpuzpuz/xsync/v3 v3.4.0 ) diff --git a/examples/chat/go.sum b/examples/chat/go.sum index 0b6125c..e84281e 100644 --- a/examples/chat/go.sum +++ b/examples/chat/go.sum @@ -4,8 +4,8 @@ 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/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e h1:Ow4vMWrCbYYskxfNMX36HPrCU0Iwjbgmtf83r8x+1tg= -github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e/go.mod h1:NGGzWVXWksrQJ9kV9SGa/A1F1Bjsgc08cN7ZVb98RqY= +github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0 h1:K9Q5b7BmbpCPJFjrAHS8+wPdKDcZN9NMC3Fg51n5IaQ= +github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0/go.mod h1:NGGzWVXWksrQJ9kV9SGa/A1F1Bjsgc08cN7ZVb98RqY= github.com/mattn/go-sqlite3 v1.14.23 h1:gbShiuAP1W5j9UOksQ06aiiqPMxYecovVGwmTxWtuw0= github.com/mattn/go-sqlite3 v1.14.23/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= diff --git a/examples/hackernews/go.mod b/examples/hackernews/go.mod index 8e9c874..741c20e 100644 --- a/examples/hackernews/go.mod +++ b/examples/hackernews/go.mod @@ -2,7 +2,7 @@ module hackernews go 1.23.0 -require github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e +require github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0 require ( github.com/go-chi/chi/v5 v5.1.0 // indirect diff --git a/examples/hackernews/go.sum b/examples/hackernews/go.sum index b26b318..f050d04 100644 --- a/examples/hackernews/go.sum +++ b/examples/hackernews/go.sum @@ -4,8 +4,8 @@ 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/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e h1:Ow4vMWrCbYYskxfNMX36HPrCU0Iwjbgmtf83r8x+1tg= -github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e/go.mod h1:NGGzWVXWksrQJ9kV9SGa/A1F1Bjsgc08cN7ZVb98RqY= +github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0 h1:K9Q5b7BmbpCPJFjrAHS8+wPdKDcZN9NMC3Fg51n5IaQ= +github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0/go.mod h1:NGGzWVXWksrQJ9kV9SGa/A1F1Bjsgc08cN7ZVb98RqY= 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= diff --git a/examples/simple-auth/go.mod b/examples/simple-auth/go.mod index e6d5e2f..d41f1b9 100644 --- a/examples/simple-auth/go.mod +++ b/examples/simple-auth/go.mod @@ -3,7 +3,7 @@ module simpleauth go 1.23.0 require ( - github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e + github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0 github.com/mattn/go-sqlite3 v1.14.24 golang.org/x/crypto v0.28.0 ) diff --git a/examples/simple-auth/go.sum b/examples/simple-auth/go.sum index 601ae49..9814172 100644 --- a/examples/simple-auth/go.sum +++ b/examples/simple-auth/go.sum @@ -4,8 +4,8 @@ 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/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e h1:Ow4vMWrCbYYskxfNMX36HPrCU0Iwjbgmtf83r8x+1tg= -github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e/go.mod h1:NGGzWVXWksrQJ9kV9SGa/A1F1Bjsgc08cN7ZVb98RqY= +github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0 h1:K9Q5b7BmbpCPJFjrAHS8+wPdKDcZN9NMC3Fg51n5IaQ= +github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0/go.mod h1:NGGzWVXWksrQJ9kV9SGa/A1F1Bjsgc08cN7ZVb98RqY= github.com/mattn/go-sqlite3 v1.14.24 h1:tpSp2G2KyMnnQu99ngJ47EIkWVmliIizyZBfPrBWDRM= github.com/mattn/go-sqlite3 v1.14.24/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= diff --git a/examples/todo-list/go.mod b/examples/todo-list/go.mod index 82b035c..9d1467e 100644 --- a/examples/todo-list/go.mod +++ b/examples/todo-list/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( entgo.io/ent v0.14.1 github.com/google/uuid v1.6.0 - github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e + github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0 github.com/mattn/go-sqlite3 v1.14.23 ) diff --git a/examples/todo-list/go.sum b/examples/todo-list/go.sum index 4a03512..6ebdaf9 100644 --- a/examples/todo-list/go.sum +++ b/examples/todo-list/go.sum @@ -33,8 +33,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e h1:Ow4vMWrCbYYskxfNMX36HPrCU0Iwjbgmtf83r8x+1tg= -github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e/go.mod h1:NGGzWVXWksrQJ9kV9SGa/A1F1Bjsgc08cN7ZVb98RqY= +github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0 h1:K9Q5b7BmbpCPJFjrAHS8+wPdKDcZN9NMC3Fg51n5IaQ= +github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0/go.mod h1:NGGzWVXWksrQJ9kV9SGa/A1F1Bjsgc08cN7ZVb98RqY= github.com/mattn/go-sqlite3 v1.14.23 h1:gbShiuAP1W5j9UOksQ06aiiqPMxYecovVGwmTxWtuw0= github.com/mattn/go-sqlite3 v1.14.23/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 h1:DpOJ2HYzCv8LZP15IdmG+YdwD2luVPHITV96TkirNBM= diff --git a/framework-ui/go.mod b/framework-ui/go.mod index 0da1d4f..8c49a12 100644 --- a/framework-ui/go.mod +++ b/framework-ui/go.mod @@ -2,7 +2,7 @@ module github.com/maddalax/htmgo/framework-ui go 1.23.0 -require github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e +require github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0 require ( github.com/go-chi/chi/v5 v5.1.0 // indirect diff --git a/framework-ui/go.sum b/framework-ui/go.sum index b26b318..f050d04 100644 --- a/framework-ui/go.sum +++ b/framework-ui/go.sum @@ -4,8 +4,8 @@ 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/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e h1:Ow4vMWrCbYYskxfNMX36HPrCU0Iwjbgmtf83r8x+1tg= -github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e/go.mod h1:NGGzWVXWksrQJ9kV9SGa/A1F1Bjsgc08cN7ZVb98RqY= +github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0 h1:K9Q5b7BmbpCPJFjrAHS8+wPdKDcZN9NMC3Fg51n5IaQ= +github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0/go.mod h1:NGGzWVXWksrQJ9kV9SGa/A1F1Bjsgc08cN7ZVb98RqY= 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= diff --git a/htmgo-site/go.mod b/htmgo-site/go.mod index 95c84c9..5083b4a 100644 --- a/htmgo-site/go.mod +++ b/htmgo-site/go.mod @@ -5,8 +5,8 @@ go 1.23.0 require ( github.com/alecthomas/chroma/v2 v2.14.0 github.com/google/uuid v1.6.0 - github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e - github.com/maddalax/htmgo/tools/html-to-htmgo v0.0.0-20241025161122-e2939cd8ba8e + github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0 + github.com/maddalax/htmgo/tools/html-to-htmgo v0.0.0-20241025174132-df3edccd7fb0 github.com/yuin/goldmark v1.7.4 github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc ) diff --git a/htmgo-site/go.sum b/htmgo-site/go.sum index 397e6c2..76197bb 100644 --- a/htmgo-site/go.sum +++ b/htmgo-site/go.sum @@ -19,10 +19,10 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= -github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e h1:Ow4vMWrCbYYskxfNMX36HPrCU0Iwjbgmtf83r8x+1tg= -github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e/go.mod h1:NGGzWVXWksrQJ9kV9SGa/A1F1Bjsgc08cN7ZVb98RqY= -github.com/maddalax/htmgo/tools/html-to-htmgo v0.0.0-20241025161122-e2939cd8ba8e h1:xKylmFT6lU58+RLE9NlCfINxXinI/Z85XHIV3gWufHo= -github.com/maddalax/htmgo/tools/html-to-htmgo v0.0.0-20241025161122-e2939cd8ba8e/go.mod h1:hahYMeImbtIgIr5KQXarKZw8zDt2rqyCojUZV9fiAQ4= +github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0 h1:K9Q5b7BmbpCPJFjrAHS8+wPdKDcZN9NMC3Fg51n5IaQ= +github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0/go.mod h1:NGGzWVXWksrQJ9kV9SGa/A1F1Bjsgc08cN7ZVb98RqY= +github.com/maddalax/htmgo/tools/html-to-htmgo v0.0.0-20241025174132-df3edccd7fb0 h1:U57+3oRD+uGrc9Aapi/Ol1ZzRuCY2s0diK0pxWtIZeU= +github.com/maddalax/htmgo/tools/html-to-htmgo v0.0.0-20241025174132-df3edccd7fb0/go.mod h1:FraJsj3NRuLBQDk83ZVa+psbNRNLe+rajVtVhYMEme4= 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/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= diff --git a/templates/starter/go.mod b/templates/starter/go.mod index 6146d98..437362f 100644 --- a/templates/starter/go.mod +++ b/templates/starter/go.mod @@ -2,7 +2,7 @@ module starter-template go 1.23.0 -require github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e +require github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0 require ( github.com/go-chi/chi/v5 v5.1.0 // indirect diff --git a/templates/starter/go.sum b/templates/starter/go.sum index b26b318..f050d04 100644 --- a/templates/starter/go.sum +++ b/templates/starter/go.sum @@ -4,8 +4,8 @@ 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/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e h1:Ow4vMWrCbYYskxfNMX36HPrCU0Iwjbgmtf83r8x+1tg= -github.com/maddalax/htmgo/framework v1.0.2-0.20241025161122-e2939cd8ba8e/go.mod h1:NGGzWVXWksrQJ9kV9SGa/A1F1Bjsgc08cN7ZVb98RqY= +github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0 h1:K9Q5b7BmbpCPJFjrAHS8+wPdKDcZN9NMC3Fg51n5IaQ= +github.com/maddalax/htmgo/framework v1.0.2-0.20241025174132-df3edccd7fb0/go.mod h1:NGGzWVXWksrQJ9kV9SGa/A1F1Bjsgc08cN7ZVb98RqY= 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= diff --git a/tools/html-to-htmgo/internal/adapters/services/parser/parser_test.go b/tools/html-to-htmgo/internal/adapters/services/parser/parser_test.go index 5d2de8d..2554172 100644 --- a/tools/html-to-htmgo/internal/adapters/services/parser/parser_test.go +++ b/tools/html-to-htmgo/internal/adapters/services/parser/parser_test.go @@ -22,7 +22,7 @@ func FuzzFromBytes(f *testing.F) { if err != nil { return } - if err != nil && !isExpectedError(err) { + if !isExpectedError(err) { t.Errorf("Unexpected error: %v", err) } })