Part 7: Source Code for a TDD Telephone Directory in Golang
Here is an example of a simple telephone directory implemented in Go using Test-Driven Development (TDD) principles:
package main
import (
"fmt"
"strings"
)
type Directory struct {
contacts map[string]string
}
func (d *Directory) AddCo...
thomascherickal.hashnode.dev2 min read