Skip to content

Instantly share code, notes, and snippets.

{
"$schema": "https://flagd.dev/schema/v0/flags.json",
"flags": {
"AllowAutoUpgrade": {
"state": "ENABLED",
"variants": {
"on": true,
"off": false
},
"defaultVariant": "off",
@jeffy-mathew
jeffy-mathew / main.go
Last active June 3, 2021 03:31
waitgroup implementation with channels
// NOTE: This is not a solution with performance in mind.
// This is to understand basic working of waitgroup as well as channels
package main
import (
"fmt"
"sync"
)
type waitGroup struct {