Skip to content

Instantly share code, notes, and snippets.

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

Mofeoluwa ScMofeoluwa

🏠
Working from home
View GitHub Profile
//ErrorGroup vs WaitGroup
//Gist for an article for my portfolio
//WaitGroup Approach
func checkOne(n int) error {
if n != 1 {
return errors.New("number not one")
}
return nil
}
@ScMofeoluwa
ScMofeoluwa / env2json.go
Last active April 13, 2023 10:31
.env configs to json
package main
import (
"bufio"
"encoding/json"
"fmt"
"os"
"strings"
)