This is a creation in Article, where the information may have evolved or changed.
Learning Golang for a period of time, from no clue to everywhere, and then to the rest of the peace of mind to study SDL2 also have a small six months.
Tonight refactoring before the study code, found that if you do not write the article, may later review this time to write the code to spend time, so this article to do a bit of code on the mark, and for Will learn Golang version of the SDL2 students lie ahead of thunder.
I Golang development environment:
Os:debian 8.3 + Gnome3
Golang Installation:
下载地址:https://golang.org/dl/安装说明:https://golang.org/doc/install安装说明一定要好好看一遍,可解决不少坑
Go Package Library:
Https://github.com/veandco/go-sdl2
#安装方法go get -u veandco/go-sdl2
Editor: Atom
Atom Plugin:
~/.atom/packages (22)├── Remote-FTP@0.7.20 # 连接ftp或sftp专用,很好用,修改后自动上传├── activate-power-mode@0.4.1 # 未使用,恨谁就推荐给谁用├── atom-beautify@0.28.26 # 代码检查,格式化工具├── color-picker@2.1.1 # 颜色拾取├── docblockr@0.7.3 # 写文档备注├── emmet@2.4.2 # go用不到├── ex-mode@0.8.0├── file-icons@1.6.18 # 文件图标├── git-plus@5.13.0 # git插件├── go-plus@3.5.4 # Golang插件(go开发必装,内有小坑)├── highlight-selected@0.11.2 # 双击选择高亮├── merge-conflicts@1.3.7 # git合并工具├── minimap@4.19.0 # 右侧代码小图├── minimap-highlight-selected@4.3.1 # 双击选择在代码小图中高亮├── pigments@0.24.2├── seti-icons@0.4.5├── seti-syntax@0.4.1├── seti-ui@0.9.1├── term3@0.21.2├── terminal-plus@0.14.5├── vim-mode@0.64.0└── vim-mode-plus@0.23.0
SDL2 Dependent Library Installation
# 各库功能参考 http://wiki.libsdl.org/APIByCategorysudo aptitude install libsdl2-2.0-0 libsdl2-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev
Age-old, if you have questions welcome feedback.