- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for commitUnix (0.05 sec)
-
buildscripts/gen-ldflags.go
// git log --format=%cD -n1 var ( commitUnix []byte err error ) cmdName := "git" cmdArgs := []string{"log", "--format=%cI", "-n1"} if commitUnix, err = exec.Command(cmdName, cmdArgs...).Output(); err != nil { fmt.Fprintln(os.Stderr, "Error generating git commit-time: ", err) os.Exit(1) } t, err := time.Parse(time.RFC3339, strings.TrimSpace(string(commitUnix))) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jun 16 23:10:48 UTC 2022 - 3.3K bytes - Viewed (0)