garble
garble copied to clipboard
Problems with gin template rendering
What version of Garble and Go are you using?
mvdan.cc/garble v0.12.1 go1.22.6
What environment are you running Garble on?
go env
Output
GO111MODULE='' GOARCH='amd64' GOBIN='' GOCACHE='/home/admin/.cache/go-build' GOENV='/home/admin/.config/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='amd64' GOHOSTOS='linux' GOINSECURE='' GOMODCACHE='/home/admin/Code/pkg/mod' GONOPROXY='*' GONOSUMDB='*' GOOS='linux' GOPATH='/home/admin/Code' GOPRIVATE='*' GOPROXY='https://proxy.golang.org,direct' GOROOT='/home/admin/go' GOSUMDB='sum.golang.org' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/home/admin/go/pkg/tool/linux_amd64' GOVCS='' GOVERSION='go1.22.6' GCCGO='gccgo' GOAMD64='v1' AR='ar' CC='gcc' CXX='g++' CGO_ENABLED='1' GOMOD='/home/admin/Code/src/test/go.mod' GOWORK='' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build1548521202=/tmp/go-build -gno-record-gcc-switches'
What did you do?
What did you expect to see?
Use bool and other interface{} types in html templates.
What did you see instead?
Error with bool type in gin template rendering.
Error #01: template: test.html:14:11: executing "test.html" at <$v.IsOpen>: can't evaluate field IsOpen in type CC3Eu0GdG_jK.OSgLH1cBblg