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:
parent
c87489adf3
commit
dfe03f1347
@ -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?
|
||||||
|
Loading…
Reference in New Issue
Block a user