summaryrefslogtreecommitdiff
path: root/pkg/variables.go
diff options
context:
space:
mode:
authorJulien Dessaux2024-03-11 23:19:13 +0100
committerJulien Dessaux2024-03-11 23:19:13 +0100
commitb40723b0b8d482140c5152b22233c1b62ec7838d (patch)
treeeb1a7995c4e2d2c17ce9a98807aabed0ca3b81f2 /pkg/variables.go
parentfeat(gonf): bootstrapped the gonf cli (diff)
downloadgonf-b40723b0b8d482140c5152b22233c1b62ec7838d.tar.gz
gonf-b40723b0b8d482140c5152b22233c1b62ec7838d.tar.bz2
gonf-b40723b0b8d482140c5152b22233c1b62ec7838d.zip
chore(variables): support integer interpolation for all values
Diffstat (limited to '')
-rw-r--r--pkg/variables.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/variables.go b/pkg/variables.go
index ed09d31..bb3096d 100644
--- a/pkg/variables.go
+++ b/pkg/variables.go
@@ -70,6 +70,9 @@ type VariablePromise struct {
func (s VariablePromise) Bytes() []byte {
return s.value.Bytes()
}
+func (s VariablePromise) Int() (int, error) {
+ return s.value.Int()
+}
func (s VariablePromise) String() string {
return s.value.String()
}