bluele / gcache

An in-memory cache library for golang. It supports multiple eviction policies: LRU, LFU, ARC
MIT License
2.6k stars 271 forks source link

examples causing redefine main function error with `go get` #51

Closed lightsing closed 3 years ago

lightsing commented 6 years ago

examples causing redefine main function error with go get

github.com/bluele/gcache/examples
# github.com/bluele/gcache/examples
..\Go\src\github.com\bluele\gcache\examples\custom_expiration.go:9:6: main redeclared in this block
    previous declaration at ..\Go\src\github.com\bluele\gcache\examples\autoloading_cache.go:8:6
..\Go\src\github.com\bluele\gcache\examples\example.go:8:6: main redeclared in this block
    previous declaration at ..\Go\src\github.com\bluele\gcache\examples\custom_expiration.go:9:6
erwanor commented 6 years ago

Thanks for reporting this issue, I'm trying to reproduce on my machine!

Can you share your go version and maybe uname -a please?

lightsing commented 6 years ago

sorry i'm usinig win 10 these days. go version go1.9.4 windows/amd64

bluele commented 3 years ago

fixed at https://github.com/bluele/gcache/pull/74