summaryrefslogtreecommitdiffstats
path: root/config.go
diff options
context:
space:
mode:
authorSean E. Russell <ser@ser1.net>2021-02-03 14:27:46 -0600
committerSean E. Russell <ser@ser1.net>2021-02-03 14:27:46 -0600
commite5bf9851ff3fc8748a2c770415a13a7a0244ba55 (patch)
tree20cd5077dabeb3594e1a52ff9eb37aa09ad45acd /config.go
parent7b19606acc610929a24351bcdccc62c9cf4f8b09 (diff)
Go 1.16: embed and io/fs
Diffstat (limited to 'config.go')
-rw-r--r--config.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.go b/config.go
index b483f65..68ec523 100644
--- a/config.go
+++ b/config.go
@@ -6,6 +6,7 @@ package gotop
import (
"bufio"
"bytes"
+ "embed"
"fmt"
"io"
"io/ioutil"
@@ -16,12 +17,15 @@ import (
"strings"
"time"
- "github.com/xxxserxxx/lingo"
"github.com/shibukawa/configdir"
"github.com/xxxserxxx/gotop/v4/colorschemes"
"github.com/xxxserxxx/gotop/v4/widgets"
+ "github.com/xxxserxxx/lingo/v2"
)
+//go:embed "dicts/*.toml"
+var Dicts embed.FS
+
// CONFFILE is the name of the default config file
const CONFFILE = "gotop.conf"