mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
clear up wording
This commit is contained in:
parent
0d211d3419
commit
a78942e8f3
@ -15,15 +15,15 @@ contributors:
|
|||||||
---
|
---
|
||||||
|
|
||||||
Go was created out of the need to get work done. It's not the latest trend
|
Go was created out of the need to get work done. It's not the latest trend
|
||||||
in computer science, but it is the newest fastest way to solve real-world
|
in programming language theory, but it is a way to solve real-world
|
||||||
problems.
|
problems.
|
||||||
|
|
||||||
It has familiar concepts of imperative languages with static typing.
|
It draws concepts from imperative languages with static typing.
|
||||||
It's fast to compile and fast to execute, it adds easy-to-understand
|
It's fast to compile and fast to execute, it adds easy-to-understand
|
||||||
concurrency to leverage today's multi-core CPUs, and has features to
|
concurrency because multi-core CPUs are now common, and it's used successfully
|
||||||
help with large-scale programming.
|
in large codebases (~100 million loc at Google, Inc.).
|
||||||
|
|
||||||
Go comes with a great standard library and an enthusiastic community.
|
Go comes with a good standard library and a sizeable community.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
// Single line comment
|
// Single line comment
|
||||||
@ -48,7 +48,7 @@ import (
|
|||||||
// executable program. Love it or hate it, Go uses brace brackets.
|
// executable program. Love it or hate it, Go uses brace brackets.
|
||||||
func main() {
|
func main() {
|
||||||
// Println outputs a line to stdout.
|
// Println outputs a line to stdout.
|
||||||
// Qualify it with the package name, fmt.
|
// It comes from the package fmt.
|
||||||
fmt.Println("Hello world!")
|
fmt.Println("Hello world!")
|
||||||
|
|
||||||
// Call another function within this package.
|
// Call another function within this package.
|
||||||
|
Loading…
Reference in New Issue
Block a user