You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@ In Go, variables declared without an explicit initial value are given their zero
17
17
18
18
## Marshalling/Unmarshalling JSON
19
19
20
+
**Note:** v0.6.0 introduces a potential breaking change to anyone depending on marshalling non-present values to their zero values instead of null. See: [#9](https://github.com/markphelps/optional/pull/9) for more context.
21
+
20
22
Option types also marshal to/from JSON as you would expect:
21
23
22
24
### Marshalling
@@ -165,3 +167,7 @@ See [example_test.go](example_test.go) and the [documentation](http://godoc.org/
165
167
1. Commit your changes (`git commit -am 'Add some feature'`)
166
168
1. Push to the branch (`git push origin my-new-feature`)
167
169
1. Create a new Pull Request
170
+
171
+
### Golden Files
172
+
173
+
If changing the API you may need to update the [golden files](https://medium.com/soon-london/testing-with-golden-files-in-go-7fccc71c43d3) for your tests to pass by running `go test ./cmd/optional/... -update`.
0 commit comments