flâneur — a map of the web's best reading

Pointers & errors - Learn Go with tests

quii.gitbook.io · 3,419 words · saved by 1 readers

Learn Go with tests Contribute on github Search… main Learn Go with Tests GO FUNDAMENTALS Install Go Hello, World Integers Iteration Arrays and slices Structs, methods & interfaces Pointers & errors Maps Dependency Injection Mocking Concurrency Select Reflection Sync Context Intro to property based tests Maths Reading files BUILD AN APPLICATION Intro HTTP server JSON, routing and embedding IO and sorting Command line & package structure Time WebSockets QUESTIONS AND ANSWERS OS Exec Error types Context-aware Reader Revisiting HTTP Handlers META Why unit tests and how to make them work for you Anti-patterns Intro to generics Contributing Chapter Template Powered By GitBook Pointers & errors ​You can find all the code for this chapter here​ We learned about structs in the last section which let us capture a number of values related around a concept. At some point you may wish to use structs to manage state, exposing methods to let users change the state in a way that you can control. Fint

Pointers & errors | Learn Go with tests Learn Go with tests main Learn Go with Tests Go fundamentals Install Go Hello, World Integers Iteration Arrays and slices Structs, methods & interfaces Pointers & errors Maps Dependency Injection Mocking Concurrency Select Reflection Sync Context Intro to property based tests Maths Reading files Templating Generics Revisiting arrays and slices with generics Testing fundamentals Introduction to acceptance tests Scaling acceptance tests Working without mocks Refactoring Checklist Build an application Intro HTTP server JSON, routing and embedding IO and sor

Explore this link on the map →

saved by

related reading