go-gomail / gomail

The best way to send emails in Go.
MIT License
4.33k stars 573 forks source link

Error: header.go:76: undefined: sync.Pool #22

Closed nebulae1 closed 9 years ago

nebulae1 commented 9 years ago

This error seems to be happening on go 1.4.1. It works on go 1.3.3. Is there an incompatibility with go 1.4.1?

alexcesaro commented 9 years ago

Are you sure you are using Go 1.4.1? sync.Pool exists since Go 1.3 and you should not have this error. Can you detail how you get this error?

nebulae1 commented 9 years ago

It works fine on my machine, which is running 1.3.3. My colleague switched to my branch and downloaded the gomail package, then he got that error. We double checked the go version, 1.4.1. We are running the same os (Windows) and IDE(atom).

On Tue, Mar 3, 2015 at 2:53 PM, Alexandre Cesaro notifications@github.com wrote:

Are you sure you are using Go 1.4.1? sync.Pool exists since Go 1.3 and you should not have this error. Can you detail how you get this error?

— Reply to this email directly or view it on GitHub https://github.com/go-gomail/gomail/issues/22#issuecomment-77044468.

alexcesaro commented 9 years ago

You should first try to do a simple package that uses sync.Pool to see if it compiles.

nebulae1 commented 9 years ago

There was some conflict with app engine. This was fixed when app engine was upgraded to the latest version.