GitHub - mobiledatabooks/go-parametrized-fizzbuzz: Golang Solution for Parametrized Fizzbuzz. Unit Testing for All Possible Input Combinations: How to Build and Deploy Production-Grade Go (Golang) projects.

2 min read Original article ↗

go-parametrized-fizzbuzz

Concurrent Golang Solution for Parametrized Fizzbuzz. Unit Testing for All Possible Input Combinations: How to Build and Deploy Production-Grade Concurrent Go (Golang) projects.

View on Amazon Concurrent Golang Solution for Parametrized Fizzbuzz. Unit Testing for All Possible Input Combinations: How to Build and Deploy Production-Grade Concurrent Go (Golang) projects.

fizzbuzz

import "mobiledatabooks.com/go-parametrized-fizzbuzz/fizzbuzz"

Index

Constants

const FizzBuzz = "Z" //"Z"

end::fizz-buzz-a[]

func FizzBuzz

func FizzBuzz(fizzAt, buzzAt int64) []string

FizzBuzz performs a FizzBuzz operation over a range of integers tag::fizz-buzz[]

func FizzBuzzBigInt

func FizzBuzzBigInt(fizzAt, buzzAt int64) []string

tag::fizz-buzz-04[]

func FizzBuzzConcurrent

func FizzBuzzConcurrent(fizzAt, buzzAt int64) []string

FizzBuzzConcurrent Concurrent FizzBuzz with Go Routines from Russ Cox. Here you find a parametrized solution.

.FizzBuzzConcurrent tag::fizz-buzz-FizzBuzzConcurrent[]

func FizzBuzzContinue

func FizzBuzzContinue(fizzAt, buzzAt int64) []string

FizzBuzzContinue performs a FizzBuzz operation over a range of integers tag::fizz-buzz-03[]

func FizzBuzzIfElse

func FizzBuzzIfElse(fizzAt, buzzAt int64) []string

FizzBuzzIfElse performs a FizzBuzz operation over a range of integers tag::fizz-buzz-02[]

func FizzBuzzMinMemory

func FizzBuzzMinMemory(fizzAt, buzzAt int64) []string

FizzBuzzMinMemory performs a FizzBuzz operation over a range of integers tag::fizz-buzz-a[]

func FizzBuzzSlow

func FizzBuzzSlow(fizzAti, buzzAti int64) []string

FizzBuzzSlow generates the expected array in an alternative way (very inefficient).

tag::fizz-buzz-01[]

func FizzBuzzSlowMinMemory

func FizzBuzzSlowMinMemory(fizzAti, buzzAti int64) []string

FizzBuzzSlowMinMemory generates the expected array in an alternative way (very inefficient).

tag::fizz-buzz-01-a[]

func filter

func filter(c <-chan string, n int, label string) <-chan string

<10>

func generate

func generate() <-chan string