gopl-zh.github.com/ch1/ch1.md

6 lines
783 B
Markdown
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 第1章 入门
本章介绍Go语言的基础组件。本章提供了足够的信息和示例程序希望可以帮你尽快入门写出有用的程序。本章和之后章节的示例程序都针对你可能遇到的现实案例。先了解几个Go程序涉及的主题从简单的文件处理、图像处理到互联网客户端和服务端并发。当然第一章不会解释细枝末节但用这些程序来学习一门新语言还是很有效的。
学习一门新语言时会有一种自然的倾向按照自己熟悉的语言的套路写新语言程序。学习Go语言的过程中请警惕这种想法尽量别这么做。我们会演示怎么写好Go语言程序所以请使用本书的代码作为你自己写程序时的指南。