Programming in Go by Mark Summerfield
ISBN: 0321774639
Copyright © 2011-12 Qtrac Ltd.
All the programs, packages, and associated files in this archive are
licensed under the Apache License, Version 2.0 (the "License"); you may
not use these files except in compliance with the License. You can get a
copy of the License at: http://www.apache.org/licenses/LICENSE-2.0. (The
License is also included in this archive in file LICENSE-2.0.txt.)
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
All the book's examples are designed to be educational, and many are
also designed to be useful. I hope that you find them helpful, and are
perhaps able to use some of them as starting points for your own
projects.
On Unix-like systems (e.g., Linux, FreeBSD, Mac OS X), once you have
installed Go, you can build all the examples in one go by executing:
$ cd $HOME/goeg
$ ./build.sh
On Windows it works similarly:
C:\>cd goeg
C:\goeg>build.bat
The build.sh (Unix) or build.bat (Windows) script sets GOPATH
temporarily just for the build and uses the go command (go build); both
assume that the go command (i.e., Go's bin directory) is in the PATH
which it will be if you installed a binary version.
If you want to build the examples individually and build your own Go
programs you will need to set GOPATH. This can be done temporarily by
running the accompanying gopath.sh (Unix) or gopath.bat (Windows) script
(after editing to change any paths to match your setup), or permanently
by adding the export lines from gopath.sh to your .bashrc file or on
Windows by creating a Go-specific console shortcut: see
gopath.sh or gopath.bat for more information.
Here is the list of programs and packages referred to in the book
grouped by chapter:
Chapter 1: An Overview in Five Examples
hello
bigdigits
stack
americanize
polar2cartesian
bigdigits_ans
Chapter 2: Identifiers, Booleans, and Numbers
pi_by_digits
statistics
statistics_ans
quadratic_ans1
quadratic_ans2
Chapter 3: Strings
m3u2pls
playlist
soundex
Chapter 4: Collection Types
guess_separator
wordfrequency
chap4_ans
Chapter 5: Procedural Programming
archive_file_list
archive_file_list_ans
statistics_nonstop
statistics_nonstop2
contains
palindrome
palindrome_ans
memoize
indent_sort
common_prefix
Chapter 6: Object-Oriented Programming
fuzzy
fuzzy_immutable
fuzzy_mutable
fuzzy_value
shaper1
shaper2
shaper3
ordered_map
qtrac.eu/omap
font
shaper_ans1
shaper_ans2
shaper_ans3
Chapter 7: Concurrent Programming
filter
cgrep1
cgrep2
cgrep3
safemap
apachereport1
apachereport2
apachereport3
findduplicates
safeslice
apachereport4
[apachereport5 added to examples after publication; see errata]
imagetag1
imagetag2
sizeimages1
sizeimages2
Chapter 8: File Handling
invoicedata
pack
unpack
unpack_ans
utf16-to-utf8
invoicedata_ans
Chapter 9: Packages
qtrac.eu/omap
cgrep3
linkcheck
没有合适的资源?快使用搜索试试~ 我知道了~
Go语言程序设计(Mark Summerfield)-源代码
共120个文件
go:101个
txt:10个
bat:2个
5星 · 超过95%的资源 需积分: 10 57 下载量 126 浏览量
2018-10-01
22:10:23
上传
评论
收藏 170KB ZIP 举报
温馨提示
Go语言程序设计(作者Mark Summerfield),书中的所有示例,在Linux、Mac OS X和Windows平台上的gc编译器测试通过。具体使用方法参见原著第一章的说明。
资源推荐
资源详情
资源评论
收起资源包目录
Go语言程序设计(Mark Summerfield)-源代码 (120个子文件)
build.bat 3KB
gopath.bat 2KB
shapes.go 12KB
shapes.go 12KB
shapes.go 10KB
shapes.go 10KB
shapes.go 9KB
omap.go 9KB
shapes.go 8KB
inv.go 8KB
inv.go 7KB
invoicedata.go 6KB
txt.go 6KB
archive_file_list.go 6KB
invoicedata.go 6KB
quadratic.go 6KB
statistics.go 6KB
contains.go 5KB
xml.go 5KB
txt.go 5KB
statistics.go 5KB
statistics.go 5KB
sizeimages2.go 5KB
soundex.go 5KB
unpack.go 5KB
wordfrequency.go 5KB
sizeimages1.go 5KB
playlist.go 5KB
quadratic.go 5KB
pack.go 5KB
xml.go 5KB
chap4_ans.go 5KB
unpack.go 5KB
shaper1.go 5KB
archive_file_list.go 4KB
findduplicates.go 4KB
linkcheck.go 4KB
cgrep.go 4KB
indent_sort.go 4KB
shaper2.go 4KB
cgrep.go 4KB
omap_test.go 4KB
cgrep.go 4KB
filter.go 4KB
shaper3.go 4KB
jsn.go 4KB
americanise.go 4KB
statistics.go 4KB
safeslice.go 3KB
common_prefix.go 3KB
ordered_map.go 3KB
imagetag2.go 3KB
apachereport.go 3KB
safemap.go 3KB
oslice.go 3KB
gob.go 3KB
stack_test.go 3KB
guess_separator.go 3KB
safemap_test.go 3KB
apachereport.go 3KB
jsn.go 3KB
gob.go 3KB
m3u2pls.go 3KB
fuzzybool.go 3KB
m3u2pls_test.go 3KB
apachereport.go 3KB
fuzzybool.go 3KB
bigdigits.go 3KB
fuzzybool.go 3KB
apachereport.go 3KB
apachereport.go 3KB
memoize.go 3KB
oslice_test.go 3KB
pi_by_digits.go 3KB
safeslice_test.go 3KB
polar2cartesian.go 2KB
fuzzybool.go 2KB
utf16-to-utf8.go 2KB
imagetag1.go 2KB
font_test.go 2KB
palindrome.go 2KB
bigdigits.go 2KB
palindrome.go 2KB
linkutil_test.go 2KB
fuzzy.go 2KB
linkutil.go 2KB
fuzzy.go 2KB
americanise_test.go 2KB
font.go 2KB
stacker.go 2KB
mutable_fuzzy.go 2KB
immutable_fuzzy.go 2KB
bigdigits_test.go 2KB
bigdigits_test.go 2KB
stack.go 1KB
shaper1.go 1KB
shaper2.go 1KB
shaper3.go 1KB
util_windows.go 1KB
hello.go 929B
共 120 条
- 1
- 2
资源评论
- 逍遥子(。ˇεˇ。)2020-01-02很好,感谢!
- logicLG2019-09-29不错,很好好啊哈
- InnerPale2019-04-19很好用 谢谢分享
qizi1984
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功