Skip to content

Instantly share code, notes, and snippets.

View MWhyte's full-sized avatar

Michael Whyte MWhyte

View GitHub Profile
@MWhyte
MWhyte / interfaces.go
Last active September 11, 2024 22:00
A Simple example of how to use interfaces in go
package main
import "fmt"
type DataSource interface {
Connect() error
Disconnect() error
}
type Postgres struct {