https://github.com/mikunalpha/paws
Paws just provide some helper functions.
https://github.com/mikunalpha/paws
Last synced: 9 months ago
JSON representation
Paws just provide some helper functions.
- Host: GitHub
- URL: https://github.com/mikunalpha/paws
- Owner: mikunalpha
- License: mit
- Created: 2019-09-28T13:29:27.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-10T02:47:55.000Z (over 4 years ago)
- Last Synced: 2025-01-30T00:41:18.789Z (11 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Paws
[](http://godoc.org/github.com/mikunalpha/paws)
Paws provides some helper functions for gopher's developing experience.
## Example
```go
package paws_test
import (
"testing"
"github.com/mikunalpha/paws"
)
type User struct {
Email string
Name *string
Age *int32
}
func TestPaws(t *testing.T) {
_ = User{
Email: "user001@email.com",
Name: paws.String("user001"),
Age: paws.Int32(3),
}
var requestEmail *string = nil
var requestName *string = nil
var requestAge *int32 = nil
_ = User{
Email: paws.MustString(requestEmail, "unknown@email.com"),
Name: paws.String(paws.MustString(requestName, "unknown")),
Age: requestAge,
}
}
```