Config UI: visualize Modbusproxy (#24015)
Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
parent
7924922d4b
commit
07bcca2925
19 changed files with 666 additions and 119 deletions
|
|
@ -242,6 +242,11 @@ func Yaml(key string, other, res any) error {
|
|||
return DecodeOtherSliceOrMap(other, res)
|
||||
}
|
||||
|
||||
func IsJson(key string) bool {
|
||||
s, err := String(key)
|
||||
return err == nil && json.Unmarshal([]byte(s), &json.RawMessage{}) == nil
|
||||
}
|
||||
|
||||
// wrapping Settings into a struct for better decoupling
|
||||
type Settings struct{}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue