Go install doesn't create any bin file

前端 未结 3 1414
感情败类
感情败类 2021-02-03 22:37

My folder structure is correct, i can both run go install from inside the package folder and from anywhere in the system, adding the package (folder) name after

3条回答
  •  遇见更好的自我
    2021-02-03 22:59

    Well, as a first program, I used first line as package hello

    Then it was creating "hello.a" under pkg folder. Moment I changed it to "package main", the executable was generated

提交回复
热议问题