You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to int, this will need to be done for string, bool, and float as well. Keep in mind there are no generics in go, so there will be a lot of repeated code for each type. It'll be ugly. Probably put it in something like jsontypes.go and filter.go, with both extra commented.
The text was updated successfully, but these errors were encountered:
This would avoid needing to have 2 running processes.
To handle JSON properly in Go, do something like this:
Given the above and some json unmarshalled into this struct:
To set to
undefined
:To set to
null
:To set to any other value:
In addition to int, this will need to be done for string, bool, and float as well. Keep in mind there are no generics in go, so there will be a lot of repeated code for each type. It'll be ugly. Probably put it in something like
jsontypes.go
andfilter.go
, with both extra commented.The text was updated successfully, but these errors were encountered: