ncparser

package module
v0.0.0-...-0d59f1b Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: Apache-2.0 Imports: 7 Imported by: 2

README

go-nginx-conf-parser

Language Go Report Card Build Status GoDoc Coverage Status License

go-nginx-conf-parser parse nginx configure file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NginxConfigureBlock

type NginxConfigureBlock []NginxConfigureCommand

NginxConfigureBlock represent a block in nginx configure file. The content of a nginx configure file should be a block.

func Parse

func Parse(content []byte) (blk NginxConfigureBlock, err error)

Parse the content of nginx configure file into NginxConfigureBlock

type NginxConfigureCommand

type NginxConfigureCommand struct {
	// Words compose the command
	Words []string

	// Block follow the command
	Block NginxConfigureBlock
}

NginxConfigureCommand represenct a command in nginx configure file.

Jump to

Keyboard shortcuts

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