Getting Started
Install the Go email verification SDK by running go get github.com/ecomtechbd/ev-go in your module directory. The package requires Go 1.18 or higher and has zero external dependencies, relying entirely on the Go standard library for HTTP communication, JSON parsing, and cryptographic operations. The module follows semantic versioning and is available through the Go module proxy for fast, reliable downloads.
After installation, create a new client using ev.NewClient() with your API key. You can also set the EV_API_KEY environment variable and call ev.NewClientFromEnv() for automatic key resolution. The client constructor accepts functional options for configuring timeout, maximum retries, sandbox mode, a custom HTTP client, and a custom base URL. The resulting client is safe for concurrent use across multiple goroutines and internally manages connection pooling via Go's http.Transport. All verification methods accept a context.Context as their first parameter, supporting timeout, cancellation, and deadline propagation throughout your application.