Skip to content

Commit

Permalink
refactor(009-mocking): use bytes for input
Browse files Browse the repository at this point in the history
  • Loading branch information
sheldonhull committed Aug 5, 2021
1 parent 9be2573 commit 56b8740
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/009-mocking/mocking.go
Expand Up @@ -3,11 +3,13 @@ package main
import (
"bytes"
"fmt"
"os"
)

func Countdown(out *bytes.Buffer, count int) {
fmt.Fprintf(out, fmt.Sprintf("%d", count))
}

func main() {
Countdown(os.Stdout)
}

0 comments on commit 56b8740

Please sign in to comment.