Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fengsp/golang-tour
Sample Go code from the Tour of Go
https://github.com/fengsp/golang-tour
Last synced: about 2 months ago
JSON representation
Sample Go code from the Tour of Go
- Host: GitHub
- URL: https://github.com/fengsp/golang-tour
- Owner: fengsp
- Created: 2014-06-30T09:20:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-30T10:05:35.000Z (over 10 years ago)
- Last Synced: 2023-08-01T06:21:46.640Z (over 1 year ago)
- Homepage: http://tour.golang.org/
- Size: 129 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
A Tour of Go
Code examples from the tour of Go
Read the tour at http://tour.golang.org/
Table of contents are as follows:
01. Hello, 世界
02. Go local
03. The Go Playground
04. Packages
05. Imports
06. Exported names
07. Functions
08. Functions continued
09. Multiple results
10. Named results
11. Variables
12. Variables with initializers
13. Short variable declarations
14. Basic types
15. Type conversions
16. Constants
17. Numeric Constants
18. For
19. For continued
20. For is Go's "while"
21. Forever
22. If
23. If with a short statement
24. If and else
25. Exercise: Loops and Functions
26. Structs
27. Struct Fields
28. Pointers
29. Struct Literals
30. The new function
31. Arrays
32. Slices
33. Slicing slices
34. Making slices
35. Nil slices
36. Range
37. Range continued
38. Exercise: Slices
39. Maps
40. Map literals
41. Map literals continued
42. Mutating Maps
43. Exercise: Maps
44. Function values
45. Function closures
46. Exercise: Fibonacci closure
47. Switch
48. Switch evaluation order
49. Switch with no condition
50. Advanced Exercise: Complex cube roots
51. Methods and Interfaces
52. Methods
53. Methods continued
54. Methods with pointer receivers
55. Interfaces
56. Interfaces are satisfied implicitly
57. Errors
58. Exercise: Errors
59. Web servers
60. Exercise: HTTP Handlers
61. Images
62. Exercise: Images
63. Exercise: Rot13 Reader
64. Concurrency
65. Goroutines
66. Channels
67. Buffered Channels
68. Range and Close
69. Select
70. Default Selection
71. Exercise: Equivalent Binary Trees
72. Exercise: Equivalent Binary Trees
73. Exercise: Web CrawlerIf you feel anything wrong, feedbacks or pull requests are welcomed.