From the course: Deep Dive Into Go Lang Interfaces
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Challenge: Interface design
From the course: Deep Dive Into Go Lang Interfaces
Challenge: Interface design
“
(upbeat music) - [Instructor] In this challenge, I want you to implement the Puller interface. We have a database with records. Each record has a key and a data, and we would like you to implement the Puller interface, which allows you to pull a single record from the database.
Contents
-
-
-
-
(Locked)
Say what you need, not what you provide1m 48s
-
Case study: Analyzing sort.Interface2m 28s
-
(Locked)
Embedding interfaces1m 54s
-
(Locked)
Using type assertion to keep the interface small5m 43s
-
(Locked)
Design for performance3m 28s
-
(Locked)
Challenge: Interface design21s
-
(Locked)
Solution: Interface design36s
-
(Locked)
-
-
-
-