GO in IntelliJ IDEA. Multiple File and Error Undefined: Data

前端 未结 4 2094
你的背包
你的背包 2021-02-02 17:25

I want use IntelliJ IDE Community Edition to write code in GO (GoLang). I instaled right plugin, and instaled all need tools to build applicati

4条回答
  •  [愿得一人]
    2021-02-02 17:49

    ----------------------SOLVED-------------------------------------------SOLVED---------------------

    Steps

    • Project must be found in directory for/example/MyProject/src/HERE_DIRECTORY_WITH_YOUR_SOURCE_GO_FILE sub direcytory src is important
    • Go to Run --> Edit Configurations
    • Find below position

    • Change Run Kind to Package
    • In Position Package write Your folder with Your code (Shold be Highlight it is correct)
    • Click On PLUS icon in left top corner, and Add Go Application
    • Apply changes
    • In the right top corner main window IDE You see small icon Play

    • Chose early defined Go Application my is Unamed
    • Click Play
    • An Joy :D

提交回复
热议问题