go 学习笔记(3) 基础结构

package main

import (
	"fmt"
)

const NAME string = "imooc"

var a string = "慕课网"

type imoocInt int
type learn struct {
}

type ilearn interface {
}

func myfun() {
	fmt.Println(NAME)
	fmt.Println(a)

}

func main() {
	myfun()
	fmt.Println("hi")

}

  

原文地址:https://www.cnblogs.com/saryli/p/11349829.html