https://github.com/catvec/go-default-bug
Reproduces a bug with go-default and bool fields.
https://github.com/catvec/go-default-bug
Last synced: 7 months ago
JSON representation
Reproduces a bug with go-default and bool fields.
- Host: GitHub
- URL: https://github.com/catvec/go-default-bug
- Owner: catvec
- License: mit
- Created: 2019-03-18T19:57:29.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-18T20:14:23.000Z (about 7 years ago)
- Last Synced: 2025-05-04T01:02:13.205Z (11 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Default Bug
Reproduces a bug with go-default and bool fields.
# Table Of Contents
- [Overview](#overview)
# Overview
A bug exists in the
[go-default library](https://github.com/mcuadros/go-defaults) which does not
allow you to set a boolean field to false.
See the `defaults_test.go` file. The `TestSetFalse` case will always fail.
Run these tests by executing:
```
go test ./...
```