main.go 源码
// Copyright © 2018 Inanc Gumus
// Learn Go Programming Course
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
//
// For more tutorials : https://learngoprogramming.com
// In-person training : https://www.linkedin.com/in/inancgumus/
// Follow me on twitter: https://twitter.com/inancgumus
package main
// ---------------------------------------------------------
// 练习: 作用域的初体验
//
// 1. 创建两个文件: main.go 和 printer.go
//
// 2. 在 printer.go 中:
// 1. 创建一个叫 hello 的函数
// 2. hello 函数的作用是输出你的名字
//
// 3. 在 main.go 中:
// 1. 和之前一样,创建 main 函数
// 2. 调用你定义的函数,通过函数名 : hello
// 3. 创建一个叫 bye 的函数
// 4. 在 bye 函数中, 输出 "bye bye"
//
// 4. 在 printer.go 中:
// 1. 在 hello 函数中
// 调用 bye 函数
// ---------------------------------------------------------
func main() {
}
你可能感兴趣的文章
go main
go main
go main
go main
go main
go Header
go main
go main
go main
go main