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

--version cli flag #42

Merged
merged 1 commit into from
Jun 4, 2020
Merged

Conversation

stefanotorresi
Copy link
Collaborator

if buildDate == "" {
buildDate = "at unknown time"
}
fmt.Printf("version %s\nbuilt with %s %s/%s %s\n", version, runtime.Version(), runtime.GOOS, runtime.GOARCH, buildDate)
Copy link
Contributor

@MalloZup MalloZup Jun 3, 2020

Choose a reason for hiding this comment

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

should be fmt.Printf("version %s \n built with %s %s/%s %s \n", version, runtime.Version(), runtime.GOOS, runtime.GOARCH, buildDate)

Copy link
Collaborator Author

@stefanotorresi stefanotorresi Jun 3, 2020

Choose a reason for hiding this comment

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

hmm, I don't think so, why should it? It would leave an invisible empty space at the end of each line. Why would you want that?

Copy link
Contributor

Choose a reason for hiding this comment

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

ok true I think i have misread yesterday

Copy link
Contributor

@MalloZup MalloZup left a comment

Choose a reason for hiding this comment

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

i think the format need a space after \n

@MalloZup MalloZup merged commit 38c2a2b into SUSE:master Jun 4, 2020
@stefanotorresi stefanotorresi deleted the feature/version-flag branch June 4, 2020 09:50
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