GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.
Go botgogolanggolang-whatsappgolang-whatsapp-apirestrest-apiwhatsappwhatsapp-apiwhatsapp-api-gowhatsapp-multi-devicewhatsapp-web-multi-device
docs: correct stale viper.IsSet comment
Aldino Kemal08e005ff6dc9
diff --git a/src/cmd/root.go b/src/cmd/root.goindex f0e58223..134110ab 100644--- a/src/cmd/root.go+++ b/src/cmd/root.go@@ -106,9 +106,10 @@ func initEnvConfig() {config.AppCORSAllowedOrigins = strings.Split(envCORSOrigins, ",")}- // Web UI settings. Guard on GetString != "" rather than viper.IsSet:- // IsSet does not consult AutomaticEnv, so plain environment variables- // (e.g. in Docker) would be ignored for bool/duration keys.+ // Web UI settings. Guarded on GetString != "" so an unset key keeps the+ // default instead of being overwritten by the zero value of GetBool /+ // GetDuration. viper.IsSet works equally well here (it does consult+ // AutomaticEnv), so either guard is fine for new keys.if viper.GetString("app_ui_enabled") != "" {config.AppUIEnabled = viper.GetBool("app_ui_enabled")}