Welcome to this task, where we will see how to work with Wails!
📝 Note: On Windows host systems, please make sure to re-run the
wails dev
command when making changes in your Go code, this usually happens automatically, but is a limitation inside the docker environment.
❗ Important: While connection to the wails server is lost, you will see a loading animation which might not automatically finish, so be sure to refresh yourself after some seconds.
Create a function Multiply
for the multiplication of two numbers.
💡 Tip: You can use
int
/int64
orfloat64
, if you want to support decimals!
Comment the import back in once you finished Task 0.1!
Replace the 0
with the commented out code await Multiply(3, 6)
.
✅ Complete: Your Task should now work!
Again, don't forget to re-run the wails dev
command as you made changes to the Go code.