feat: early access

This commit is contained in:
James Houlahan
2020-12-03 15:36:02 +01:00
parent eccad4bbfd
commit d2066173f0
22 changed files with 235 additions and 72 deletions

View File

@ -20,6 +20,7 @@ package settings
import (
"encoding/json"
"errors"
"fmt"
"os"
"strconv"
"sync"
@ -135,3 +136,7 @@ func (p *keyValueStore) SetBool(key string, value bool) {
func (p *keyValueStore) SetInt(key string, value int) {
p.Set(key, strconv.Itoa(value))
}
func (p *keyValueStore) SetFloat64(key string, value float64) {
p.Set(key, fmt.Sprintf("%v", value))
}