Versions in this module Expand all Collapse all v0 v0.2.1 Jun 3, 2026 Changes in this version + var ErrCorpCodeNotFound = errors.New("opendart: corp_code not found") + var ErrNoData = httpclient.ErrNoData + type APIError = httpclient.APIError + type Client struct + Disclosure *disclosure.Client + Material *material.Client + Ownership *ownership.Client + Registration *registration.Client + Report *report.Client + func NewClient(apiKey string, opts ...Option) (*Client, error) + func NewClientFromEnv(opts ...Option) (*Client, error) + func (c *Client) CorpCodes(ctx context.Context) ([]CorpCodeEntry, error) + func (c *Client) LookupCorpCode(ctx context.Context, corpCode string) (CorpCodeEntry, error) + func (c *Client) RefreshCorpCodes(ctx context.Context) error + func (c *Client) ResolveCorpCode(ctx context.Context, stockCode string) (string, error) + type CorpCodeEntry = corpcode.Entry + type Option func(*clientOptions) + func WithBaseURL(u string) Option + func WithCorpCodeCacheDir(dir string) Option + func WithCorpCodeCacheTTL(d time.Duration) Option + func WithHTTPClient(c *http.Client) Option + func WithTimeout(d time.Duration) Option v0.2.0 Jun 3, 2026