Skip to content

Instantly share code, notes, and snippets.

View yael-castro's full-sized avatar
🏠
Working from home

Yael Castro yael-castro

🏠
Working from home
  • México
  • 16:27 (UTC -06:00)
View GitHub Profile
@yael-castro
yael-castro / main.go
Last active August 5, 2023 21:34
Stop n goroutines in case of any failure
// Package main
//
// - This is an example of how to stop several concurrent processes if an unexpected error occurs in one process.
// - This is a specific example of error management in multiple processes that can serve as a basis for solving other similar problems.
//
// Go Playground: https://go.dev/play/p/FrDs5m4fzWZ
//
package main
import (
@yael-castro
yael-castro / .gitignore
Last active June 5, 2023 00:00
.gitignore for Golang projects
# Jetbrains IDEs
.idea
# Vim
*.swp
*.swn
*.swo
# MacOS system file
.DS_Store