Huang-Huang Bao
f0236233f3
Fix: json.Reader: fill output bytes as much as possible
...
Fix JSON parsing state machine so Read([]byte) can accept byte array of any length.
This fixes a infinite read with io.ReadFull().
2022-09-07 10:50:17 +01:00
秋のかえで
79320d34d4
Chore: bump gopkg.in/yaml.v2 to gopkg.in/yaml.v3 ( #1828 )
...
* Chore: bump gopkg.in/yaml.v2 to gopkg.in/yaml.v3
* Test: fix YAML test
* Test: refine json_test style
2022-07-13 21:21:32 +08:00
Shelikhoo
3ef7feaeaf
update version: auto replacement to v5 path
2022-01-02 15:16:23 +00:00
Loyalsoldier
dce8764fd7
Lint: fix lint ( #1427 )
...
* Lint: replace golint with revive
* Lint: fix lint
2021-11-27 17:16:41 +08:00
Loyalsoldier
43447aa2e4
Chore: format code to fix lint ( #1426 )
2021-11-27 14:32:07 +08:00
Shelikhoo
37f1b98cb2
relax test for mixed type content
...
Whether to allow mixed type data is contested. Since V2Ray does not use this kind of mix content in array by design, relaxing this test to avoid test break.
https://github.com/toml-lang/toml/issues/553
2021-10-21 23:34:53 +01:00
Shelikhoo
f7ba3d0341
fix test break for TOML JSON convertion
...
Based on 352072d51a/cmd/tomljson/main.go (L56)
Commit 0f7345ba76
updated toml library version, however, the library have changed its check logic for input. This issue is now fixed.
2021-10-21 23:30:35 +01:00
秋のかえで
dde9463275
V5: Add TOML Support (rebased from 36ba06837f
)
2021-09-04 11:11:45 +01:00
Jebbs
557b0c3353
V5: YAML support (rebased from 9367e9b1f2
)
2021-09-04 11:05:52 +01:00
Loyalsoldier
6f8979d017
Style: format code by gofumpt ( #1022 )
2021-05-20 05:28:52 +08:00
Loyalsoldier
f94dd11a8c
Chore: change module name ( #677 )
2021-02-17 04:31:50 +08:00
loyalsoldier
784775f689
Refine code according to golangci-lint results
2020-10-11 19:22:46 +08:00
Darien Raymond
4eb2b5e607
merge ext into core
2019-02-10 19:04:11 +01:00