sanitizer

package
v1.3.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sanitizer

type Sanitizer struct {
	// contains filtered or unexported fields
}

func NewSanitizer

func NewSanitizer(config *SanitizerConfig) *Sanitizer

func (*Sanitizer) Process

func (s *Sanitizer) Process(code string) (string, error)

type SanitizerConfig

type SanitizerConfig struct {
	ImportWhitelist   map[string]string
	FunctionBlacklist map[string][]string
}

func (SanitizerConfig) AllowedPrefixes added in v1.2.1

func (c SanitizerConfig) AllowedPrefixes() (prefixes []string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL