2018-11-12 07:41:00 +00:00
|
|
|
package nginx
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
)
|
|
|
|
|
2018-11-12 11:08:54 +00:00
|
|
|
// NewDecoder implements parser.T
|
2018-11-12 15:42:24 +00:00
|
|
|
func NewDecoder(r io.Reader) *decoder {
|
2018-11-12 07:41:00 +00:00
|
|
|
return &decoder{reader: r}
|
|
|
|
}
|
2018-11-12 14:35:45 +00:00
|
|
|
|
2018-11-12 15:42:24 +00:00
|
|
|
// NewEncoder implements parser.T
|
|
|
|
func NewEncoder(w io.Writer) *encoder {
|
|
|
|
return &encoder{writer: w}
|
|
|
|
}
|