aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/go-toolsmith/astcast
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2023-02-22 22:16:50 +0100
committerTaras Madan <tarasmadan@google.com>2023-02-24 12:47:23 +0100
commit4165372ec8fd142475a4e35fd0cf4f8042132208 (patch)
tree21cd62211b4dd80bee469054c5b65db77342333c /vendor/github.com/go-toolsmith/astcast
parent2b3ed821a493b8936c8bacfa6f8b4f1c90a00855 (diff)
dependencies: update
set go min requirements to 1.19 update dependencies update vendor
Diffstat (limited to 'vendor/github.com/go-toolsmith/astcast')
-rw-r--r--vendor/github.com/go-toolsmith/astcast/.travis.yml9
-rw-r--r--vendor/github.com/go-toolsmith/astcast/README.md27
-rw-r--r--vendor/github.com/go-toolsmith/astcast/go.mod6
-rw-r--r--vendor/github.com/go-toolsmith/astcast/go.sum4
4 files changed, 22 insertions, 24 deletions
diff --git a/vendor/github.com/go-toolsmith/astcast/.travis.yml b/vendor/github.com/go-toolsmith/astcast/.travis.yml
deleted file mode 100644
index c32ac0062..000000000
--- a/vendor/github.com/go-toolsmith/astcast/.travis.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-language: go
-go:
- - 1.x
-install:
- - # Prevent default install action "go get -t -v ./...".
-script:
- - go get -t -v ./...
- - go tool vet .
- - go test -v -race ./...
diff --git a/vendor/github.com/go-toolsmith/astcast/README.md b/vendor/github.com/go-toolsmith/astcast/README.md
index b618da461..19ca0e71d 100644
--- a/vendor/github.com/go-toolsmith/astcast/README.md
+++ b/vendor/github.com/go-toolsmith/astcast/README.md
@@ -1,15 +1,19 @@
-[![Go Report Card](https://goreportcard.com/badge/github.com/go-toolsmith/astcast)](https://goreportcard.com/report/github.com/go-toolsmith/astcast)
-[![GoDoc](https://godoc.org/github.com/go-toolsmith/astcast?status.svg)](https://godoc.org/github.com/go-toolsmith/astcast)
-
# astcast
-Package astcast wraps type assertion operations in such way that you don't have
+[![build-img]][build-url]
+[![pkg-img]][pkg-url]
+[![reportcard-img]][reportcard-url]
+[![version-img]][version-url]
+
+Package `astcast` wraps type assertion operations in such way that you don't have
to worry about nil pointer results anymore.
## Installation
+Go version 1.16+
+
```bash
-go get -v github.com/go-toolsmith/astcast
+go get github.com/go-toolsmith/astcast
```
## Example
@@ -84,3 +88,16 @@ func main() {
fmt.Printf("%T %s\n", bar, bar.Name)
}
```
+
+## License
+
+[MIT License](LICENSE).
+
+[build-img]: https://github.com/go-toolsmith/astcast/workflows/build/badge.svg
+[build-url]: https://github.com/go-toolsmith/astcast/actions
+[pkg-img]: https://pkg.go.dev/badge/go-toolsmith/astcast
+[pkg-url]: https://pkg.go.dev/github.com/go-toolsmith/astcast
+[reportcard-img]: https://goreportcard.com/badge/go-toolsmith/astcast
+[reportcard-url]: https://goreportcard.com/report/go-toolsmith/astcast
+[version-img]: https://img.shields.io/github/v/release/go-toolsmith/astcast
+[version-url]: https://github.com/go-toolsmith/astcast/releases
diff --git a/vendor/github.com/go-toolsmith/astcast/go.mod b/vendor/github.com/go-toolsmith/astcast/go.mod
deleted file mode 100644
index 3e431993e..000000000
--- a/vendor/github.com/go-toolsmith/astcast/go.mod
+++ /dev/null
@@ -1,6 +0,0 @@
-module github.com/go-toolsmith/astcast
-
-require (
- github.com/go-toolsmith/astequal v1.0.0 // indirect
- github.com/go-toolsmith/strparse v1.0.0
-)
diff --git a/vendor/github.com/go-toolsmith/astcast/go.sum b/vendor/github.com/go-toolsmith/astcast/go.sum
deleted file mode 100644
index aa0857030..000000000
--- a/vendor/github.com/go-toolsmith/astcast/go.sum
+++ /dev/null
@@ -1,4 +0,0 @@
-github.com/go-toolsmith/astequal v1.0.0 h1:4zxD8j3JRFNyLN46lodQuqz3xdKSrur7U/sr0SDS/gQ=
-github.com/go-toolsmith/astequal v1.0.0/go.mod h1:H+xSiq0+LtiDC11+h1G32h7Of5O3CYFJ99GVbS5lDKY=
-github.com/go-toolsmith/strparse v1.0.0 h1:Vcw78DnpCAKlM20kSbAyO4mPfJn/lyYA4BJUDxe2Jb4=
-github.com/go-toolsmith/strparse v1.0.0/go.mod h1:YI2nUKP9YGZnL/L1/DLFBfixrcjslWct4wyljWhSRy8=