Versions in this module Expand all Collapse all v0 v0.6.0 Aug 12, 2026 v0.5.0 Aug 12, 2026 Changes in this version + var ErrPolicyDenied = errors.New("policy denied") + type Policy struct + AllowClipboard bool + AllowEval bool + AllowFileUpload bool + AllowedDomains []string + BlockedDomains []string + MaxNavigations int + func FromDomains(domains []string) *Policy + func Load(path string) (*Policy, error) + func (p *Policy) AllowAction(action string) error + func (p *Policy) AllowURL(rawURL string) error