From 32c3206ccfb9605a96b5238dd0ab1a64e7b792d6 Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Wed, 1 Oct 2025 12:14:37 +0530 Subject: [PATCH] chore: dynamic copyright year I ran the help command locally and could not help but notice a hardcoded 2023 in the copyright message. This change ensure the copyright year updates dynamically. --- main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 498fbdb..ccb53ec 100644 --- a/main.go +++ b/main.go @@ -5,6 +5,7 @@ import ( "os" "runtime" "runtime/pprof" + "time" "github.com/felixge/fgprof" "github.com/urfave/cli/v2" @@ -17,7 +18,6 @@ const ( ) func main() { - // Initialise application app := cli.NewApp() @@ -35,8 +35,7 @@ func main() { Email: "jacob@shuf.ro", }, } - app.Copyright = "(c) 2023 Rocket Pool Pty Ltd" - + app.Copyright = fmt.Sprintf("(c) %d Rocket Pool Pty Ltd", time.Now().Year()) // Set application flags app.Flags = []cli.Flag{ &cli.Int64Flag{ @@ -178,5 +177,4 @@ func main() { os.Exit(1) } fmt.Println("") - }