summaryrefslogtreecommitdiff
path: root/conv
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2022-09-25 10:32:07 -0400
committerDave Henderson <dhenderson@gmail.com>2022-09-25 10:56:26 -0400
commit7d9d3351ab165b3d9f6af767a707c33fbca5eb70 (patch)
tree400e0be0ca6d9e2308a3fc7cbf2cf1de0cd4aee3 /conv
parent64a0269c2672c2d1a6984832cfd0a6ac1c0e725b (diff)
Fixing deprecation annotation syntax
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'conv')
-rw-r--r--conv/conv.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/conv/conv.go b/conv/conv.go
index d1f902e2..c61319f3 100644
--- a/conv/conv.go
+++ b/conv/conv.go
@@ -17,6 +17,7 @@ import (
// All other values are considered false.
//
// See ToBool also for a more flexible version.
+//
// Deprecated: use ToBool instead
func Bool(in string) bool {
if b, err := strconv.ParseBool(in); err == nil {
@@ -67,6 +68,8 @@ func ToBools(in ...interface{}) []bool {
}
// Slice creates a slice from a bunch of arguments
+//
+// Deprecated: use [github.com/hairyhenderson/gomplate/v3/coll.Slice] instead
func Slice(args ...interface{}) []interface{} {
return args
}