diff --git a/common/tplfunc.go b/common/tplfunc.go index 5213715..70608db 100644 --- a/common/tplfunc.go +++ b/common/tplfunc.go @@ -24,12 +24,10 @@ import ( "io/fs" "io/ioutil" "path/filepath" - - "github.com/webx-top/echo/middleware/tplfunc" ) -func TplFuncs() template.FuncMap { - return tplfunc.TplFuncMap +var TplFuncs = func() template.FuncMap { + return template.FuncMap{} } func ParseFiles(files ...string) (*template.Template, error) { diff --git a/go.mod b/go.mod index 9dd397b..965b533 100644 --- a/go.mod +++ b/go.mod @@ -3,16 +3,11 @@ module github.com/coscms/forms go 1.16 require ( - github.com/admpub/decimal v0.0.2 // indirect - github.com/admpub/fsnotify v1.4.4 // indirect github.com/francoispqt/gojay v1.2.13 // indirect github.com/goccy/go-json v0.5.1 // indirect github.com/json-iterator/go v1.1.11 // indirect github.com/stretchr/testify v1.7.0 // indirect - github.com/webx-top/captcha v0.0.1 // indirect github.com/webx-top/com v0.2.0 - github.com/webx-top/echo v2.13.3+incompatible github.com/webx-top/tagfast v0.0.0-20161020041435-9a2065ce3dd2 github.com/webx-top/validation v0.0.1 - golang.org/x/sys v0.0.0-20210521203332-0cec03c779c1 // indirect ) diff --git a/go.sum b/go.sum index 6e37bf1..ebfb190 100644 --- a/go.sum +++ b/go.sum @@ -8,10 +8,6 @@ dmitri.shuralyov.com/service/change v0.0.0-20181023043359-a85b471d5412/go.mod h1 dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c/go.mod h1:0PRwlb0D6DFvNNtx+9ybjezNCa8XF0xaYcETyp6rHWU= git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/admpub/decimal v0.0.2 h1:BEu/O7I9mwKPMHO+/pDjzXzC3F8vCGRiR0y0PmSYQ40= -github.com/admpub/decimal v0.0.2/go.mod h1:QJItPT9L1pPsXkS6fnwWB0FHlSDE7G0x6KOQfgAWyM4= -github.com/admpub/fsnotify v1.4.4 h1:LhmWQAC3la+JtwlVZ42uRSahOU0lccSOZV7/hB4gqCA= -github.com/admpub/fsnotify v1.4.4/go.mod h1:IE7rjoj2vwr4cYUYQFUeBV1KgldTeXTQy7TwOe0Zwlk= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g= @@ -114,12 +110,8 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA= github.com/viant/assertly v0.4.8/go.mod h1:aGifi++jvCrUaklKEKT0BU95igDNaqkvz+49uaYMPRU= github.com/viant/toolbox v0.24.0/go.mod h1:OxMCG57V0PXuIP2HNQrtJf2CjqdmbrOx5EkMILuUhzM= -github.com/webx-top/captcha v0.0.1 h1:vdik4uyFByNfTm2Tst9SkL4rgOaTIyaHZ4sWwamincY= -github.com/webx-top/captcha v0.0.1/go.mod h1:kGMilOqpVTyNiO8pdztdBQJ4Wv836pf7/6kxfANPasY= github.com/webx-top/com v0.2.0 h1:y9DWRU0bOgHxq+zJH29HIufYvf/fsnCJei5V01rzOW8= github.com/webx-top/com v0.2.0/go.mod h1:DDfATzu1w5+vD5XmG3YRTfLjaIqZWi/yeJ7HQEGsM2Q= -github.com/webx-top/echo v2.13.3+incompatible h1:8jPgZaAogLuK8cZDp8qAvj/XwryXmD6DaAbgPQy5TO0= -github.com/webx-top/echo v2.13.3+incompatible/go.mod h1:ufVP//GwP1suggBSQW7l8G9XcKxZM+FIfCMElLAQqF8= github.com/webx-top/tagfast v0.0.0-20161020041435-9a2065ce3dd2 h1:lqnGa1BnWT7pN+c9V31bik0lTp5XxyOMRp7ICsZ6K5M= github.com/webx-top/tagfast v0.0.0-20161020041435-9a2065ce3dd2/go.mod h1:pMe3sJitHxbxX2EAI/v9HEAXjodP4c+yUVw3rbKcljI= github.com/webx-top/validation v0.0.1 h1:I7d5iCsEY8CRzvqCJbUnIZ3Yz0MyLvInVoaljUdn21c= @@ -156,9 +148,6 @@ golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20181029174526-d69651ed3497/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190316082340-a2f829d7f35f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210521203332-0cec03c779c1 h1:lCnv+lfrU9FRPGf8NeRuWAAPjNnema5WtBinMgs1fD8= -golang.org/x/sys v0.0.0-20210521203332-0cec03c779c1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=