go main

2026-08-30 浏览 (1)

main.go 源码

// Copyright © 2018 Inanc Gumus
// Learn Go Programming Course
// Licencia: https://creativecommons.org/licenses/by-nc-sa/4.0/
//
// Para más tutoriales  : https://learngoprogramming.com
// Clases particulares : https://www.linkedin.com/in/inancgumus/
// Sigueme en twitter: https://twitter.com/inancgumus

package main

import "fmt"

func main() {
	fmt.Println("Hello!")

	// Puedes acceder a funciones desde otros archivos
	// los cuales esten en el mismo paquete
	// Por ejemplo, `main()` puede acceder a `bye()` y `hey()`

	// Porque bye.go, hey.go y main.go
	//   estan en el mismo paquete.

	bye()
	hey()
}

你可能感兴趣的文章

go bye

go hey

  • 所属分类: 后端技术
  • 本文标签: golang
  • 版权声明: 本文链接 https://seaxiang.com/blog/nrnb7z1N