1.hello,world

GO是编译型语言。GO的工具链将程序的源文件转变成机器相关的原生二进制指令。这些工具可以通过单一的go,命令配合其子命令进行使用。最简单的子命令是润,它将一个或多个以.go为后缀的源文件进行编译、链接,然后运行生成的可执行文件。

package main
import "fmt"
func main() {
    fmt.Println("hello,world")
}

go run helloworld.go
go build helloworld.go

相关文章:

  • 2021-05-22
  • 2021-11-06
  • 2021-09-26
  • 2021-04-21
  • 2021-04-02
  • 2021-11-02
  • 2022-01-04
  • 2021-07-23
猜你喜欢
  • 2021-06-27
  • 2021-12-04
  • 2021-06-30
  • 2021-08-10
  • 2022-12-23
  • 2022-01-04
  • 2021-05-20
相关资源
相似解决方案