5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-19 02:19:31 +08:00

[v3] WailsEvent expose ToJSON

This commit is contained in:
Travis McLane 2023-09-28 11:39:44 -05:00
parent c87489adf3
commit dfe03f1347

View File

@ -50,7 +50,7 @@ func (e *WailsEvent) Cancel() {
e.Cancelled = true e.Cancelled = true
} }
func (e WailsEvent) toJSON() string { func (e WailsEvent) ToJSON() string {
marshal, err := json.Marshal(&e) marshal, err := json.Marshal(&e)
if err != nil { if err != nil {
// TODO: Fatal error? log? // TODO: Fatal error? log?