Skip to content

Instantly share code, notes, and snippets.

View beatscode's full-sized avatar

Alex Casanova beatscode

  • Casanova Consulting Group
  • Long Island, New York
  • X @beatscode
View GitHub Profile
@msoap
msoap / script.go
Last active October 8, 2022 17:23
Run Go program as script
//usr/bin/env go run $0 "$@"; exit
package main
import (
"fmt"
"os"
)
func main() {
fmt.Println("Hello world!")
@jakecoffman
jakecoffman / go_functional.go
Last active December 14, 2021 16:04
Example of functional programming in Golang.
package main
import (
"constraints"
"fmt"
)
func main() {
fmt.Println(Sum(1, 2, 3, 4))
fmt.Println(Sum("1", "2", "3"))