Go编程基础—常见结构
2017-07-08 18:43
239 查看
basic_structure.go
// 当前程序的包名 package main // 导入其它的包 ,std为fmt包的别名 import std "fmt" // 常量的定义 const PI = 3.14 // 全局变量的声明与赋值 var name = "gopher" // 一般类型声明 type newType int // 结构的声明 type gopher struct{} // 接口的声明 type golang interface{} // 由 main 函数作为程序入口点启动 func main() { std.Println("Hello world!你好,世界!") }
相关文章推荐
- Go编程基础—结构(struct)
- Go编程基础——结构struct
- 编程基础:深入分析Java中的数据结构
- Struts的概念及体系结构与工作原理-Java基础-Java-编程开发
- UNIX环境高级编程——计算机体系结构基础知识
- go编程基础
- 【Java编程基础】01.Java中的String类以及字符串的常见操作
- OpenGL基础图形编程 - OpenGL基本程序结构
- 黑马程序员_java编程基础第3天1-5 循环结构while;do while;for
- Java笔记1 Java编程基础<2>循环语句、函数(重载)、变量和数组的内存结构
- 第一部分 Shell基础编程——第四章 控制流结构
- [GO编程] GO入门语法基础
- Java安全体系结构-Java基础-Java-编程开发
- SDK编程讲座 之 第四讲: Windows基础结构(2)(转载)
- SDK编程讲座 之 第四讲: Windows基础结构(1)(转载)
- 黑马程序员《.NET 编程基础 条件结构,循环结构》
- Java常见问题集锦(来自Sun中国官方站)-Java基础-Java-编程开发
- 用Java实现几种常见的排序算法-Java基础-Java-编程开发
- 1-2 Windows编程基础(了解winForm程序的代码结构) 推荐
- UNIX环境高级编程——计算机体系结构基础知识