+
Skip to content

yaegicore default main function issue, in content #1588

@rcoreilly

Description

@rcoreilly

Describe the bug

@kkoreilly please edit to clarify this as needed -- just a prompt to remember to fix this:

  • If you define types and code without a main() function, the code will not run.
  • Therefore, main is automatically inserted by yaegicore for Go
  • But not for Goal, but we should enable it for Goal as well
  • When you want to define a custom type with methods (such as for custom widgets), you can make your own main function for the main code so that things work properly (yaegicore only adds a main function if there isn't already one).

How to reproduce

Example code

Relevant output

Platform

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctly

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载