Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add clarification on log package for logging #16

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

Merged
miguelmota merged 1 commit into miguelmota:master from rogiervandenberg:master
Apr 21, 2021

Conversation

@rogiervandenberg
Copy link
Contributor

@rogiervandenberg rogiervandenberg commented Apr 13, 2021

As the target audience for your overview (proficient in node, but beginner in Go) I was delighted to see all the examples. But I stumbled on an error, or so I thought 🙈

As the Logging example was omitting the timestamp in the code (as is part of the node example), I wanted to 'fix' that Logging Go example with:

fmt.Println(time.Now().Format(time.RFC3339), "hello world")

..only to find out that the log package already automagically includes the timestamp! 🎉 😮

For people moving from node to Go this is totally not obvious, so I thought it is very nice to explain that to prevent others from making the same assumption.

Copy link
Owner

@rogiervandenberg Good suggestion!

Changes look good. Merging.

Thanks!

@miguelmota miguelmota merged commit 7f3fee7 into miguelmota:master Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /