Golang: Channels

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • go

    The Go programming language

  • GitHub repository

  • 100-days-of-golang

    Scripts and Resources for the 100 days of golang series (In progress)

  • I have a few more patterns to demonstrate that have been provided in the GitHub on the 100 days of Golang repository.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • go-formatter

    A curated list of awesome Go frameworks, libraries and software

  • Awesome Go projects and frmaeworks

  • duckduckgo-locales

    Translation files for <a href="https://duckduckgo.com"> </a>

  • package main import ( "fmt" "net/http" "sync" ) func pingGoogle(c chan string, wg *sync.WaitGroup) { defer wg.Done() res, _ := http.Get("http://google.com") c <- res.Status } func pingDuckDuckGo(c chan string, wg *sync.WaitGroup) { defer wg.Done() res, _ := http.Get("https://duckduckgo.com") c <- res.Status } func pingBraveSearch(c chan string, wg *sync.WaitGroup) { defer wg.Done() res, _ := http.Get("https://search.brave.com") c <- res.Status } func main() { gogChan := make(chan string) ddgChan := make(chan string) braveChan := make(chan string) var wg sync.WaitGroup wg.Add(3) go pingDuckDuckGo(ddgChan, &wg) go pingGoogle(gogChan, &wg) go pingBraveSearch(braveChan, &wg) openChannels := 3 go func() { wg.Wait() close(gogChan) close(ddgChan) close(braveChan) }() for openChannels > 0 { select { case msg1, ok := <-gogChan: if !ok { openChannels-- } else { fmt.Println("Google responded:", msg1) } case msg2, ok := <-ddgChan: if !ok { openChannels-- } else { fmt.Println("DuckDuckGo responded:", msg2) } case msg3, ok := <-braveChan: if !ok { openChannels-- } else { fmt.Println("BraveSearch responded:", msg3) } } } }

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Why Go is great choice for Software engineering.

    2 projects | dev.to | 7 Apr 2024
  • Golang Web: GET Method

    5 projects | dev.to | 10 Mar 2024
  • I'm coming from Java and I have been told that I'm writing go like I'm writing Java. Basically creating structs, injecting fields, and attaching methods. What else can I do?

    2 projects | /r/golang | 7 Dec 2023
  • Como deixar o Swagger com tema dark mode usando Swaggo e Golang

    5 projects | dev.to | 11 Nov 2023
  • Gorilla,wow

    2 projects | /r/golang | 9 Jul 2023