golang
  • Introduction
  • 环境安装
    • vscode
    • liteide
  • 第一个Go程序
  • Go项目结构
  • Go语言命令
  • 变量
  • 数据类型
    • array
    • slice
    • map
    • struct
    • interface
    • string
    • channel
    • 类型转换
  • 循环语句
  • HTTP编程
  • init函数
Powered by GitBook
On this page

Was this helpful?

第一个Go程序

安装好go基础环境后,我们用go语言来实现hello world程序。

编写如下一个文件hello.go

然后在该文件的当前路径下执行以下命令,就可以运行该程序了

$ go run hello.go
hello world
PreviousliteideNextGo项目结构

Last updated 5 years ago

Was this helpful?