package main import ( "fmt" "gobytest/clockface" "io" "os" "time" ) func main() { // greet.Greet(os.Stdout, "Elodie") // sleeper := countdown.NewConfigurableSleeper(1*time.Second, time.Sleep) // countdown // countdown.Countdown(os.Stdout, sleeper) // clockface t := time.Now() sh := clockface.SecondHand(t) io.WriteString(os.Stdout, svgStart) io.WriteString(os.Stdout, bezel) io.WriteString(os.Stdout, secondHandTag(sh)) io.WriteString(os.Stdout, svgEnd) } func secondHandTag(p clockface.Point) string { return fmt.Sprintf( ``, p.X, p.Y, ) } const svgStart = ` ` const bezel = `` const svgEnd = ``