mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Update howdoesitwork.mdx
This commit is contained in:
parent
2d61278125
commit
e22cfc18c9
1 changed files with 3 additions and 2 deletions
|
|
@ -264,11 +264,12 @@ In the example above, `Greet` only returns a `string` so the Javascript call wil
|
|||
is passed to it.
|
||||
|
||||
All data types are correctly translated between Go and Javascript. Even structs. If you return a struct from a Go call,
|
||||
it will be returned to your frontend as a Javascript class. Note: If you wish to use structs, you **must** define
|
||||
`json` struct tags for your fields!
|
||||
it will be returned to your frontend as a Javascript class.
|
||||
|
||||
:::info Note
|
||||
|
||||
Struct fields *must* have a valid `json` tag to be included in the generated Typescript.
|
||||
|
||||
Anonymous nested structs are not supported at this time.
|
||||
|
||||
:::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue