Skip to main content

Subpath imports

Prefer the main gopay-sdk import for most apps. Subpaths help when you want narrower imports (e.g. only errors + HTTP types) or clearer dependency boundaries in larger codebases.
The SDK exposes the main entrypoint (gopay-sdk) for typical usage. For advanced cases (custom HttpTransport, tree-shaking, or smaller bundles), you can import from subpaths:

Examples

The main gopay-sdk export still re-exports these symbols; subpaths are optional.