A self-hosted dashboard that puts all your feeds in one place
Go aggregatordashboarddockerfeed-readergohomelabhomepagemonitoringredditrssrss-readerself-hostedstartpageyoutube
Add Exists function
Svilen Markov8331c4b305e1
diff --git a/internal/glance/widget-custom-api.go b/internal/glance/widget-custom-api.goindex 04211c6..c8e3773 100644--- a/internal/glance/widget-custom-api.go+++ b/internal/glance/widget-custom-api.go@@ -133,6 +133,10 @@ func gJsonResultArrayToDecoratedResultArray(results []gjson.Result) []decoratedGreturn decoratedResults}+func (r *decoratedGJSONResult) Exists(key string) bool {+ return r.Get(key).Exists()+}+func (r *decoratedGJSONResult) Array(key string) []decoratedGJSONResult {if key == "" {return gJsonResultArrayToDecoratedResultArray(r.Result.Array())