27 lines
350 B
Go
27 lines
350 B
Go
package nginx
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
var (
|
|
defaultPrefix = ""
|
|
defaultIndent = " "
|
|
)
|
|
|
|
// encoder implements parser.Encoder
|
|
type encoder struct {
|
|
writer io.Writer
|
|
prefix string
|
|
indent string
|
|
}
|
|
|
|
func (e *encoder) SetIndent(prefix, indent string) {
|
|
e.prefix = prefix
|
|
e.indent = indent
|
|
}
|
|
|
|
func (e *encoder) Encode(v interface{}) error {
|
|
return nil
|
|
}
|