filters

package
v0.0.0-...-3a228b6 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Registry = make(map[string]Filter)

Functions

func Register

func Register(filter Filter)

Types

type Filter

type Filter interface {
	Process(content string) string
	Name() string
}

func Get

func Get(name string) Filter

type GoASTCompressFilter

type GoASTCompressFilter struct{}

func (*GoASTCompressFilter) Name

func (f *GoASTCompressFilter) Name() string

func (*GoASTCompressFilter) Process

func (f *GoASTCompressFilter) Process(content string) string

type TFIDFFilter

type TFIDFFilter struct{}

func (*TFIDFFilter) Name

func (f *TFIDFFilter) Name() string

func (*TFIDFFilter) Process

func (f *TFIDFFilter) Process(content string) string

Jump to

Keyboard shortcuts

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