Versions in this module Expand all Collapse all v1 v1.20.1 Feb 5, 2026 v1.20.0 Jan 19, 2026 Changes in this version + const HintMagic + func FindHint(b []byte) int + type Filter struct + FileSet *token.FileSet + Writer io.Writer + func (f *Filter) EnableMapping(jsFileName, goroot, gopath string, localMap bool) + func (f *Filter) IsMapping() bool + func (f *Filter) Write(p []byte) (n int, err error) + func (f *Filter) WriteJS(jsSource, jsFilePath string, minify bool) (n int, err error) + func (f *Filter) WriteMappingTo(w io.Writer) error + type Hint struct + Payload []byte + func ReadHint(b []byte) (h Hint, length int) + func (h *Hint) Pack(value any) error + func (h *Hint) Unpack() (any, error) + func (h *Hint) WriteTo(w io.Writer) (int64, error) + type Identifier struct + Name string + OriginalName string + OriginalPos token.Pos + func (i Identifier) EncodeHint() string + func (i Identifier) String() string