summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-03 00:34:55 -0600
committerJeff Carr <[email protected]>2024-12-03 00:34:55 -0600
commit283bd90e91d22e107cff71fcc613b8d646784aba (patch)
treeff26af5a12c12685f42c713b164b62e35402631b /unix.go
parentd5c394d3c3894a141d5848483102433a30e1a2db (diff)
lots more moved to using the protobufv0.22.24v0.22.23
Diffstat (limited to 'unix.go')
-rw-r--r--unix.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/unix.go b/unix.go
index 601015d..f91fd02 100644
--- a/unix.go
+++ b/unix.go
@@ -2,12 +2,10 @@ package repostatus
import (
"fmt"
- "io/ioutil"
"os"
"os/exec"
"path/filepath"
"regexp"
- "strconv"
"strings"
"time"
@@ -179,6 +177,7 @@ func Exists(file string) bool {
return true
}
+/*
func readFileToString(filename string) (string, error) {
data, err := ioutil.ReadFile(filename)
if err != nil {
@@ -217,6 +216,7 @@ func getRawDateStamp(raw string) (time.Time, string, string) {
gitTagDate := time.Unix(i, 0)
return gitTagDate, gitTagDate.UTC().Format("2006/01/02 15:04:05 UTC"), getDurationStamp(gitTagDate)
}
+*/
func getDurationStamp(t time.Time) string {
@@ -376,6 +376,7 @@ func (rs *RepoStatus) DoAll(all [][]string) bool {
return true
}
+/*
func ScanGitDirectories(srcDir string) []string {
var all []string
err := filepath.Walk(srcDir, func(path string, info os.FileInfo, err error) error {
@@ -398,3 +399,4 @@ func ScanGitDirectories(srcDir string) []string {
return all
}
+*/