package main
import (
"fmt"
"sync"
)
type Person struct {
Name string
Bio string
GithubProfile string
TechStack []string
}
func main() {
var wg sync.WaitGroup
nameCh := make(chan string)
bioCh := make(chan string)
githubCh := make(chan string)
techStackCh := make(chan []string)
// Fetch name
wg.Add(1)
go func() {
defer wg.Done()
nameCh <- "Vinny"
}()
// Fetch bio
wg.Add(1)
go func() {
defer wg.Done()
bioCh <- "Software Developer and Tech Enthusiast"
}()
// Fetch GitHub profile link
wg.Add(1)
go func() {
defer wg.Done()
githubCh <- "https://github.com/Cerebrovinny"
}()
// Fetch technology stack
wg.Add(1)
go func() {
defer wg.Done()
techStackCh <- []string{"Golang", "TypeScript", "Django", "JavaScript", "NestJS", "Python", "Spring", "AWS", "Docker", "Kafka", "React", "Next.js", "OpenTelemetry", "Playwright", "C++"}
}()
// Create a Person instance
me := Person{
Name: <-nameCh,
Bio: <-bioCh,
GithubProfile: <-githubCh,
TechStack: <-techStackCh,
}
// Wait for all goroutines to finish
wg.Wait()
// Printing the details
fmt.Println("Profile Information:")
fmt.Printf("Name: %s\n", me.Name)
fmt.Printf("Bio: %s\n", me.Bio)
fmt.Printf("GitHub Profile: %s\n", me.GithubProfile)
fmt.Println("Tech Stack:", me.TechStack)
}
Simplicity is the ultimate sophistication
B.Sc. Computer Engineer, M.Sc. Student in Software Engineering.
Clean-Code-Enthusiast (Not AI)
Finding simple solutions to complex problems
- Porto, Portugal
Highlights
Pinned Loading
-
-
brightway-lca/brightway2-io
brightway-lca/brightway2-io PublicImporting and exporting for the Brightway LCA framework
-
brightway-lca/brightway2-data
brightway-lca/brightway2-data PublicTools for the management of inventory databases and impact assessment methods. Part of the Brightway LCA framework.
-
cloudposse/test-helpers
cloudposse/test-helpers PublicA go library to help with running terratest tests
Go 3
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.