nginx

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IndentedStyle = &Style{
		SpaceBeforeBlocks: false,
		StartIndent:       0,
		Indent:            4,
	}
)

Functions

func DumpBlock

func DumpBlock(b components.IBlock, style *Style, startLine int) string

func DumpConfig

func DumpConfig(c *components.Config, style *Style) string

func DumpDirective

func DumpDirective(d components.IDirective, style *Style) string

func GetConfig

func GetConfig(path string) (*components.Config, error)

func WriteConfig

func WriteConfig(c *components.Config, style *Style) error

Types

type Style

type Style struct {
	SpaceBeforeBlocks bool
	StartIndent       int
	Indent            int
}

func (*Style) Iterate

func (s *Style) Iterate() *Style

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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