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

update go versions to go1.19, go1.20, go1.21, and add go.mod #114

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
fix example in README
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Aug 16, 2023
commit 940c2a68fe93bd5242fc58dc24489a861751f9dc
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ package main

import (
"fmt"
// "time"
"time"

"github.com/fluent/fluent-logger-golang/fluent"
)
Expand All @@ -43,10 +43,14 @@ func main() {
"foo": "bar",
"hoge": "hoge",
}
error := logger.Post(tag, data)
// error = logger.PostWithTime(tag, time.Now(), data)
if error != nil {
panic(error)
err = logger.Post(tag, data)
if err != nil {
panic(err)
}

err = logger.PostWithTime(tag, time.Now(), data)
if err != nil {
panic(err)
}
}
```
Expand Down