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...

Markdown supported · ⌘↵ to post
No responses yet.