Interface: Pointers vs Values in Go
Interfaces
An interface type is defined as a set of method signatures. A value of interface type can hold any value that implements those methods. Take a look at the below example taken from Go tour.
package main
import (
"fmt"
"math"
)
typ...
blog.dushyanth.in3 min read