Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go tweaks #251

Merged
merged 10 commits into from
Nov 6, 2023
Merged

Go tweaks #251

merged 10 commits into from
Nov 6, 2023

Conversation

Esgrove
Copy link
Contributor

@Esgrove Esgrove commented Nov 6, 2023

  • Add version info for go vault
  • Add build and version update shell scripts
  • Add gofmt to pre-commit and readme
  • Move main to project root which is what go expects by default. This way you can use go build and go run directly (and go install). @kahlstrm did you have a particular reason for the previous code organization?
  • Small formatting tweaks

@Esgrove Esgrove requested a review from kahlstrm November 6, 2023 11:01
Comment on lines +29 to +30
nVault := initVault()
all(nVault)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2023-11-06 at 11 30 31

Comment on lines +22 to +25
if *versionFlag {
fmt.Println(VersionInfo())
os.Exit(0)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

➜  go git:(go-tweaks) ✗
./nitor-vault --version
1.0.0 2023-11-06T10:52:07Z go-tweaks 56179584315cbe480e377a54bdac7d2d7f4fe863 go1.21.3 arm64

@Esgrove Esgrove merged commit 909bd40 into master Nov 6, 2023
5 checks passed
@Esgrove Esgrove deleted the go-tweaks branch November 6, 2023 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants