From 2e4546b35244b07356513c2e9e0265dc1579c051 Mon Sep 17 00:00:00 2001 From: Kuisong Tong Date: Sat, 18 Mar 2023 10:09:49 -0700 Subject: [PATCH] Release v0.2.0 (#33) --- CHANGELOG.md | 2 ++ example_test.go | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ed68d96..9b5b4aa4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [v0.2.0] - 3/18/2023 + ### Removed - Remove file.WithLog to favor standard log.Printf (#32). diff --git a/example_test.go b/example_test.go index 92794433..6a31bc0f 100644 --- a/example_test.go +++ b/example_test.go @@ -36,6 +36,7 @@ func ExampleUnmarshal() { if err := konf.Unmarshal("server", &cfg); err != nil { // Handle error here. + panic(err) } fmt.Printf("%s:%d\n", cfg.Host, cfg.Port) // Output: example.com:8080 @@ -56,6 +57,7 @@ func ExampleWatch() { if err := group.Wait(); err != nil { // Handle error here. + panic(err) } // Output: } @@ -72,6 +74,7 @@ func ExampleSetGlobal() { ) if err != nil { // Handle error here. + panic(err) } konf.SetGlobal(cfg) // Output: