An open API service indexing awesome lists of open source software.

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.

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