-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve type-safety JSON decoding and encoding #2509
Comments
adguard
pushed a commit
that referenced
this issue
Jan 20, 2021
Merge in DNS/adguard-home from 2509-type-safety to master Updates #2509. Squashed commit of the following: commit 535968e Author: Eugene Burkov <e.burkov@adguard.com> Date: Wed Jan 20 15:06:16 2021 +0300 dhcpd: fix comments commit dc79b80 Author: Eugene Burkov <e.burkov@adguard.com> Date: Wed Jan 20 14:08:10 2021 +0300 all: improve docs commit 156ebf6 Author: Eugene Burkov <e.burkov@adguard.com> Date: Tue Jan 19 17:08:15 2021 +0300 all: improve JSON encoding and decoding
adguard
pushed a commit
that referenced
this issue
Jan 21, 2021
Merge in DNS/adguard-home from 2509-type-safety-vol2 to master Updates #2509. Squashed commit of the following: commit c944e4e Author: Eugene Burkov <e.burkov@adguard.com> Date: Thu Jan 21 19:36:20 2021 +0300 all: imp docs commit e8ac181 Author: Eugene Burkov <e.burkov@adguard.com> Date: Wed Jan 20 12:38:48 2021 +0300 all: imp JSON encoding, decoding
adguard
pushed a commit
that referenced
this issue
Jan 22, 2021
Merge in DNS/adguard-home from 2509-type-safety-log to master Updates #2509. * commit '684017a75f918aa0dcd76792c34aecd35fa01b01': all: log changes
heyxkhoa
pushed a commit
to heyxkhoa/AdGuardHome
that referenced
this issue
Mar 20, 2023
Merge in DNS/adguard-home from 2509-type-safety to master Updates AdguardTeam#2509. Squashed commit of the following: commit 535968e Author: Eugene Burkov <e.burkov@adguard.com> Date: Wed Jan 20 15:06:16 2021 +0300 dhcpd: fix comments commit dc79b80 Author: Eugene Burkov <e.burkov@adguard.com> Date: Wed Jan 20 14:08:10 2021 +0300 all: improve docs commit 156ebf6 Author: Eugene Burkov <e.burkov@adguard.com> Date: Tue Jan 19 17:08:15 2021 +0300 all: improve JSON encoding and decoding
heyxkhoa
pushed a commit
to heyxkhoa/AdGuardHome
that referenced
this issue
Mar 20, 2023
Merge in DNS/adguard-home from 2509-type-safety-vol2 to master Updates AdguardTeam#2509. Squashed commit of the following: commit c944e4e Author: Eugene Burkov <e.burkov@adguard.com> Date: Thu Jan 21 19:36:20 2021 +0300 all: imp docs commit e8ac181 Author: Eugene Burkov <e.burkov@adguard.com> Date: Wed Jan 20 12:38:48 2021 +0300 all: imp JSON encoding, decoding
This was referenced Mar 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are a few places where we use
map[string]interface{}
instead of actual structures to decode and encode JSON. We should use strongly-types structs instead.The text was updated successfully, but these errors were encountered: