diff options
author | Sean E. Russell <ser@ser1.net> | 2021-02-03 14:27:46 -0600 |
---|---|---|
committer | Sean E. Russell <ser@ser1.net> | 2021-02-03 14:27:46 -0600 |
commit | e5bf9851ff3fc8748a2c770415a13a7a0244ba55 (patch) | |
tree | 20cd5077dabeb3594e1a52ff9eb37aa09ad45acd /config.go | |
parent | 7b19606acc610929a24351bcdccc62c9cf4f8b09 (diff) |
Go 1.16: embed and io/fs
Diffstat (limited to 'config.go')
-rw-r--r-- | config.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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" |