Skip to content

Instantly share code, notes, and snippets.

@sitaramshelke
Created November 28, 2023 13:50
Show Gist options
  • Save sitaramshelke/23af072b1c1eff062b7c223b7f6586f6 to your computer and use it in GitHub Desktop.
Save sitaramshelke/23af072b1c1eff062b7c223b7f6586f6 to your computer and use it in GitHub Desktop.
Snippet for self updatable go binaries
// Code snippet: Form an executable name based on assets in releases page
executableName := "cloudlens_" + strings.TrimPrefix(latest.GetTagName(), "v") + "_" + runtime.GOOS + "_" + runtime.GOARCH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment