June 2017
Beginner
1091 pages
22h 9m
English
Using your skills at this point, you can write an effective Go program using the fundamental concepts covered so far. As you will see in this chapter, the Go type system can support idioms that go beyond simple functions. While the designers of Go did not intend to create an object-oriented language with deep class hierarchies, the language is perfectly capable of supporting type compositions with advanced features to express the creation of complex object-like structures, as covered in the following topics:
A Go function can be defined with a scope narrowed to that of a specific type. When a function is scoped to a type, or attached to ...
Read now
Unlock full access