From 1e4a5aa09c1c8f43722c9c260f011398799a8e8f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 6 Mar 2024 06:29:24 -0800 Subject: rename `tools` to `packages` to follow convention The convention is to use `pkgs` or `packages` for overlays and definition of custom packages. Since I'm already using `pkg` for go, I prefer to use `packages` for my scripts. --- tools/numap/internal/sysfs/parse.go | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 tools/numap/internal/sysfs/parse.go (limited to 'tools/numap/internal/sysfs/parse.go') diff --git a/tools/numap/internal/sysfs/parse.go b/tools/numap/internal/sysfs/parse.go deleted file mode 100644 index d518653..0000000 --- a/tools/numap/internal/sysfs/parse.go +++ /dev/null @@ -1,21 +0,0 @@ -package sysfs - -import ( - "io/ioutil" - "strconv" - "strings" -) - -// ContentUint64 parses the content of a file in sysfs, and convert -// from hex to uint64. -func ContentUint64(path string) (uint64, error) { - content, err := ioutil.ReadFile(path) - if err != nil { - return 0, err - } - result, err := strconv.ParseUint(strings.TrimSpace(string(content)), 0, 64) - if err != nil { - return 0, err - } - return result, nil -} -- cgit v1.2.3