Versions in this module Expand all Collapse all v0 v0.4.0 Jun 17, 2026 Changes in this version + func NormalizeSourcePath(source, sourceRoot string) string + func SafeFilePath(normalizedPath string) string + type Mapping struct + GeneratedColumn int + GeneratedLine int + NameIndex int + SourceColumn int + SourceIndex int + SourceLine int + func ParseMappings(mappings string) []Mapping + type RestoreMode int + const RestoreModeMappings + const RestoreModeNone + const RestoreModeSourcesContent + func (m RestoreMode) String() string + type SourceFile struct + Content []byte + Mode RestoreMode + Path string + func RestoreFiles(sm *SourceMap, minifiedContent []byte) ([]SourceFile, error) + type SourceMap struct + File string + Mappings string + Names []string + SourceRoot string + Sources []string + SourcesContent []string + Version int + func Parse(content []byte) (*SourceMap, error) + func (sm *SourceMap) HasSourcesContent() bool