Skip to content

Instantly share code, notes, and snippets.

View ealyutikov's full-sized avatar
🏠
Working from home

Evgeny Lyutikov ealyutikov

🏠
Working from home
View GitHub Profile
package main
import (
"context"
"log/slog"
"maps"
"os"
"github.com/rs/zerolog"
slogzerolog "github.com/samber/slog-zerolog"
package main
import (
"context"
"log/slog"
"maps"
"os"
)
func main() {
package main
import "fmt"
type node struct {
value string
left *node
right *node
}
package main
import (
"context"
"fmt"
"math/rand"
"time"
"golang.org/x/sync/errgroup"
)
package main
import (
"fmt"
"sync"
"sync/atomic"
)
func fillChan(number int) <-chan int {
c := make(chan int)