https://github.com/weakish/goaround
Workarounds for the Go programming language.
https://github.com/weakish/goaround
Last synced: 14 days ago
JSON representation
Workarounds for the Go programming language.
- Host: GitHub
- URL: https://github.com/weakish/goaround
- Owner: weakish
- License: other
- Created: 2018-02-21T09:42:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-12-13T15:10:22.000Z (over 5 years ago)
- Last Synced: 2025-11-22T15:18:14.350Z (9 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goaround
Workarounds for Go.
## Usage
Right now goaround only includes one function `NotNil`.
`NotNil` can be used to check if the function argument passed in is nil.
It will panic when encountering a nil value.
```go
import (
"github.com/weakish/goaround"
)
func foo(bar []string) int {
goaround.NotNil(bar)
return len(bar)
}
```
## License
0BSD