https://github.com/aisk/any
go golang memes type
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aisk/any
- Owner: aisk
- License: mit
- Archived: true
- Created: 2015-04-22T05:12:33.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-08-21T11:54:51.000Z (over 7 years ago)
- Last Synced: 2025-09-11T20:45:28.945Z (8 months ago)
- Topics: go, golang, memes, type
- Language: Go
- Size: 1.95 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# any.Type
[](https://godoc.org/github.com/aisk/any) [](https://travis-ci.org/aisk/any) [](https://codecov.io/gh/aisk/any)
The missing `any.Type` for go.

---
`any.Type` is just a type alias for `interface{}`, you can use it as any value's type.
Example:
```go
package main
import (
"github.com/aisk/any"
)
func main() {
var a any.Type
a = 42
a = true
a = "don't panic"
println(a)
}
```
There is also an `any.Map` and `any.Slice`, behave like it looks like.