SetConfig sets configuration Exposed to Wails frontend as: window.go.desktop.WailsBridge.SetConfig(config)
(cfg ConfigPayload)
| 162 | // SetConfig sets configuration |
| 163 | // Exposed to Wails frontend as: window.go.desktop.WailsBridge.SetConfig(config) |
| 164 | func (b *WailsBridge) SetConfig(cfg ConfigPayload) (*BackendResponse, error) { |
| 165 | return b.handler(&FrontendMessage{ |
| 166 | ID: generateID(), |
| 167 | Type: MsgTypeSetConfig, |
| 168 | Payload: mustMarshal(cfg), |
| 169 | }) |
| 170 | } |
| 171 | |
| 172 | // GetConfig gets current configuration |
| 173 | // Exposed to Wails frontend as: window.go.desktop.WailsBridge.GetConfig() |
nothing calls this directly
no test coverage detected