From 61c2a728ca89f2cb2833535a058e044b4cd9fb62 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Fri, 5 Jul 2019 14:08:48 +0530 Subject: [PATCH] Upgrade to stuffbin v1.0.0 --- go.mod | 2 +- go.sum | 2 ++ main.go | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 8dd93ac..44275d4 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/jordan-wright/email v0.0.0-20181027021455-480bedc4908b github.com/knadh/goyesql v1.1.1 github.com/knadh/koanf v0.4.2 - github.com/knadh/stuffbin v0.0.0-20190103171338-6379e949be48 + github.com/knadh/stuffbin v1.0.0 github.com/labstack/echo v3.3.10+incompatible github.com/labstack/gommon v0.2.7 // indirect github.com/lib/pq v1.0.0 diff --git a/go.sum b/go.sum index cbcb1ad..6b9d83e 100644 --- a/go.sum +++ b/go.sum @@ -26,6 +26,8 @@ github.com/knadh/koanf v0.4.2 h1:A/bb9+eRoHHHQ57O6y66vzRCYui915CK3FdDYzNs56Q= github.com/knadh/koanf v0.4.2/go.mod h1:Qd5yvXN39ZzjoRJdXMKN2QqHzQKhSx/K8fU5gyn4LPs= github.com/knadh/stuffbin v0.0.0-20190103171338-6379e949be48 h1:lRb28d0+iiVwqF7Li25IJXjNRaVCQPH6n/fHwk9Qo+E= github.com/knadh/stuffbin v0.0.0-20190103171338-6379e949be48/go.mod h1:afUOPBWr6bZ09aS3wbSOqXVGaO6rKcyvXYTcuG9LYpI= +github.com/knadh/stuffbin v1.0.0 h1:NQon6PTpLXies4bRFhS3VpLCf6y+jn6YVXU3i2wPQ+M= +github.com/knadh/stuffbin v1.0.0/go.mod h1:yVCFaWaKPubSNibBsTAJ939q2ABHudJQxRWZWV5yh+4= github.com/labstack/echo v3.3.10+incompatible h1:pGRcYk231ExFAyoAjAfD85kQzRJCRI8bbnE7CX5OEgg= github.com/labstack/echo v3.3.10+incompatible/go.mod h1:0INS7j/VjnFxD4E2wkz67b8cVwCLbBmJyDaka6Cmk1s= github.com/labstack/gommon v0.2.7 h1:2qOPq/twXDrQ6ooBGrn3mrmVOC+biLlatwgIu8lbzRM= diff --git a/main.go b/main.go index ce5c06d..f64b4c6 100644 --- a/main.go +++ b/main.go @@ -223,7 +223,7 @@ func main() { importNotifCB) // Read system e-mail templates. - notifTpls, err := stuffbin.ParseTemplatesGlob(fs, "/email-templates/*.html") + notifTpls, err := stuffbin.ParseTemplatesGlob(nil, fs, "/email-templates/*.html") if err != nil { logger.Fatalf("error loading system e-mail templates: %v", err) } @@ -269,7 +269,7 @@ func main() { }) // Parse user facing templates. - tpl, err := stuffbin.ParseTemplatesGlob(fs, "/public/templates/*.html") + tpl, err := stuffbin.ParseTemplatesGlob(nil, fs, "/public/templates/*.html") if err != nil { logger.Fatalf("error parsing public templates: %v", err) }