mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-09-28 06:46:14 -04:00
comments
This commit is contained in:
parent
4e3ed19308
commit
09c0fa558a
@ -20,11 +20,13 @@ const (
|
||||
StateMultilineCommentStar
|
||||
)
|
||||
|
||||
// Reader is a JSON reader which allows comments.
|
||||
type Reader struct {
|
||||
io.Reader
|
||||
state State
|
||||
}
|
||||
|
||||
// Read implements io.Reader.Read().
|
||||
func (v *Reader) Read(b []byte) (int, error) {
|
||||
n, err := v.Reader.Read(b)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user