![GoDoc](https://camo.githubusercontent.com/03c934e57e3bb26c3c1d8b171b0d24d4dba9bbb711e29a63ea5e68a77caf7a8d/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f636861736573746172722f6d617463683f7374617475732e737667)
import (
"fmt"
"github.com/chasestarr/match"
)
func main() {
alex := match.Person{name: "Bradley"}
bradley := match.Person{name: "Bradley"}
christina := match.Person{name: "Christina"}
dolores := match.Person{name: "Dolores"}
alex.candidates = []string{"Dolores", "Bradley"}
bradley.candidates = []string{"Christina", "Dorlores"}
christina.candidates = []string{"Alex", "Bradley"}
dolores.candidates = []string{"Bradley", "Alex"}
a := []Person{alex, bradley}
b := []Person{christina, dolores}
matches := match.GaleShapley(a, b)
fmt.Println(matches) // "Alex" --> "Dolores", "Bradley" --> "Christina"
}