decorator

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decorator

type Decorator interface {
	Decorate(content string) (string, error)
}

Decorator represents an interface to decorate the given content.

type FormatDecorator

type FormatDecorator struct{}

FormatDecorator applies a formatting decoration to the given content.

func (FormatDecorator) Decorate

func (FormatDecorator) Decorate(content string) (string, error)

Decorate is the implementation of the Decorator interface.

type ImportDecorator

type ImportDecorator struct{}

ImportDecorator removes empty import statements from the given content.

func (ImportDecorator) Decorate

func (ImportDecorator) Decorate(content string) (string, error)

Decorate is the implementation of the Decorator interface.

Jump to

Keyboard shortcuts

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