# go-imap [![Go Reference](https://pkg.go.dev/badge/github.com/emersion/go-imap/v2.svg)](https://pkg.go.dev/github.com/emersion/go-imap/v2) An [IMAP4rev2] library for Go. > **Note** > This is the README for go-imap v2. This new major version is still in > development. For go-imap v1, see the [v1 branch]. ## Usage To add go-imap to your project, run: go get github.com/emersion/go-imap/v2 Documentation and examples for the module are available here: - [Client docs] - [Server docs] ## License MIT [IMAP4rev2]: https://www.rfc-editor.org/rfc/rfc9051.html [v1 branch]: https://github.com/emersion/go-imap/tree/v1 [Client docs]: https://pkg.go.dev/github.com/emersion/go-imap/v2/imapclient [Server docs]: https://pkg.go.dev/github.com/emersion/go-imap/v2/imapserver