diff options
author | Julien Dessaux | 2024-03-11 23:19:13 +0100 |
---|---|---|
committer | Julien Dessaux | 2024-03-11 23:19:13 +0100 |
commit | b40723b0b8d482140c5152b22233c1b62ec7838d (patch) | |
tree | eb1a7995c4e2d2c17ce9a98807aabed0ca3b81f2 /pkg/variables.go | |
parent | feat(gonf): bootstrapped the gonf cli (diff) | |
download | gonf-b40723b0b8d482140c5152b22233c1b62ec7838d.tar.gz gonf-b40723b0b8d482140c5152b22233c1b62ec7838d.tar.bz2 gonf-b40723b0b8d482140c5152b22233c1b62ec7838d.zip |
chore(variables): support integer interpolation for all values
Diffstat (limited to 'pkg/variables.go')
-rw-r--r-- | pkg/variables.go | 3 |
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() } |