Mark Sagi-Kazar
517cbc6315
refactor(encoding): remove external encoding libraries
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2024-06-20 14:38:01 +02:00
Mark Sagi-Kazar
b206f2075e
feat: control finder behavior by experimental feature flag
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2024-06-04 21:01:12 +02:00
Mark Sagi-Kazar
473a3dfc7f
fix!: hide struct binding behind a feature flag
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2023-12-18 19:36:22 +01:00
Oleksandr Redko
36a38682ba
Review changes
2023-12-06 19:07:50 +07:00
Oleksandr Redko
f0c4ccd6cd
fix: gocritic lint issues
2023-12-06 19:07:50 +07:00
Oleksandr Redko
c4dcd31f68
fix: godot lint issues
2023-11-30 21:20:53 +07:00
Oleksandr Redko
b5daec6e7b
test: Replace ifs with asserts to simplify tests
2023-10-14 02:12:35 +02:00
Oleksandr Redko
3d006fe361
refactor: replace interface{} with any
2023-10-01 17:04:26 +02:00
Oleksandr Redko
13dbfcafff
test: remove testutil.Setenv as not needed from Go 1.17
2023-09-07 13:33:21 +02:00
Oleksandr Redko
a0696bbc97
docs: fix typos in comments
2023-09-07 13:32:51 +02:00
guangwu
cb9b2bffc2
fix: code optimization ( #1557 )
...
* fix: code optimization
* fix: golangci-lint
2023-07-27 20:56:32 +02:00
Mark Sagi-Kazar
77fc1c3084
feat!: drop toml v1 support
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2023-01-19 16:02:48 +01:00
Mark Sagi-Kazar
e42b933dbe
feat!: drop yaml v2 support
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2023-01-19 16:02:48 +01:00
Mark Sagi-Kazar
57cc9a000f
test: fix ini tests
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2022-09-06 11:57:54 +02:00
Mark Sagi-Kazar
601ec815ba
test: fix toml tests
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2022-09-03 17:33:50 +02:00
Mark Sagi-Kazar
4322cf20e9
feat: make toml2 the default
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2022-05-26 17:48:00 +02:00
Mark Sagi-Kazar
8d0299919d
feat: make yaml3 the default
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2022-05-26 17:27:50 +02:00
Mark Sagi-Kazar
b13f0963f6
feat(encoding): experimental toml v2 support
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2022-01-01 18:45:36 +01:00
Mark Sagi-Kazar
98c10c3c31
test(encoding): fix failing tests due to the yaml library update
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2022-01-01 18:16:38 +01:00
Mark Sagi-Kazar
f8a13cf704
feat(encoding): experimental yaml v3 library support
2022-01-01 18:16:38 +01:00
Mark Sagi-Kazar
1d11247e33
feat(encoding): add dotenv codec
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar
72453f720e
feat(encoding): integrate Java properties codec into Viper
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar
858ffb6bd0
feat(encoding): add Java properties codec
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar
38a4fbd769
feat(encoding): add ini codec
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar
e1924e3858
test(encoding): add tests for existing encoding implementations
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar
4b307cc0f3
feat(encoding)!: accept a map in the encoder interface
...
This interface is specific to encoding data from Viper's internal,
so it's okay to make it Viper specific.
BREAKING CHANGE: the encoder interface now accepts a map instead of an interface
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar
e54e7a53a5
feat(encoding)!: accept a map in the decoder interface
...
This interface is specific to decoding data into Viper's internal,
so it's okay to make it Viper specific.
BREAKING CHANGE: the decoder interface now accepts a map instead of an
interface
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-12-15 22:31:11 +01:00
Mark Sagi-Kazar
14c9dc6a57
test: fix file find tests on windows
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-09-22 20:41:33 +02:00
Mark Sagi-Kazar
ce82267a11
refactor: drop unused Unsetenv from testutil
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-09-21 11:27:27 +02:00
Mark Sagi-Kazar
558a299a01
feat: use TB.Setenv on Go 1.17
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-09-21 11:27:27 +02:00
Mark Sagi-Kazar
699d749768
feat(encoding): Add toml codec
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-06-25 14:26:08 +02:00
Mark Sagi-Kazar
6f15444771
feat(encoding): Add hcl codec
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-06-25 14:26:08 +02:00
Mark Sagi-Kazar
186266359b
feat(encoding): Add json codec
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-06-25 14:26:08 +02:00
Mark Sagi-Kazar
0e854bf27b
feat(encoding): Add yaml codec
2021-06-25 14:26:08 +02:00
Mark Sagi-Kazar
a00caae79f
feat(encoding): Encoder/Decoder registry implementations
2021-06-25 14:26:08 +02:00
Mark Sagi-Kazar
cfcfed504d
refactor: add setenv helper for tests
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2020-09-30 13:15:51 +02:00