From 323dcb282082f1aa6cc66a9100be0fadb077714c Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 17 Jun 2026 01:29:47 +0900 Subject: cmd/app: high-level app configuration syntax This replaces the nixos module. Signed-off-by: Ophestra --- hst/dbus.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hst/dbus.go') diff --git a/hst/dbus.go b/hst/dbus.go index 5c4620cc..7b8a3585 100644 --- a/hst/dbus.go +++ b/hst/dbus.go @@ -1,6 +1,7 @@ package hst import ( + "fmt" "strconv" "strings" ) @@ -61,6 +62,10 @@ type BusConfig struct { Filter bool `json:"filter"` } +func (c *BusConfig) GoString() string { + return fmt.Sprintf("&%#v", *c) +} + // Interfaces iterates over all interface strings specified in [BusConfig]. func (c *BusConfig) Interfaces(yield func(string) bool) { if c == nil { -- cgit v1.3.1