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 18:45:30 +00:00
|
|
|
func NewDecoder(r io.Reader) *Decoder {
|
|
|
|
return &Decoder{reader: r}
|
2018-11-12 07:41:00 +00:00
|
|
|
}
|
2018-11-12 14:35:45 +00:00
|
|
|
|
2018-11-12 15:42:24 +00:00
|
|
|
// NewEncoder implements parser.T
|
2018-11-12 18:45:30 +00:00
|
|
|
func NewEncoder(w io.Writer) *Encoder {
|
|
|
|
return &Encoder{writer: w}
|
2018-11-12 15:42:24 +00:00
|
|
|
}
|