Skip to content

Instantly share code, notes, and snippets.

View cupcakearmy's full-sized avatar
🚀
Compiling.....

Nicco cupcakearmy

🚀
Compiling.....
View GitHub Profile
@miguelmota
miguelmota / command_exists.go
Last active February 15, 2024 09:29
Golang check if command exists
package main
import (
"log"
"os/exec"
)
func main() {
path, err := exec.LookPath("ls")
if err != nil {
@asukakenji
asukakenji / 0-go-os-arch.md
Last active April 24, 2024 06:51
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android