Skip to content

Instantly share code, notes, and snippets.

View mohamedattahri's full-sized avatar

MZA mohamedattahri

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mohamedattahri on github.
  • I am mohamedattahri (https://keybase.io/mohamedattahri) on keybase.
  • I have a public key ASAd5gvIZXhfO-AcmUBTbIvcLjTnvVTPGt2K2E0_zWlRJQo

To claim this, I am signing this object:

@mohamedattahri
mohamedattahri / getgo.sh
Last active April 6, 2023 18:20
Upgrade a Go installation to the latest version
#!/usr/bin/env bash
# getgo helps you install any version of go, or simply upgrade
# to the latest.
#
# Go versions will be installed under "/usr/local/go/{VERSION}",
# and "/usr/local/go/latest" will always point to the latest
# version installed.
#
# Upgrade to the latest:
@mohamedattahri
mohamedattahri / gocheck.go
Created April 12, 2023 17:15
Simple way to check if running the latest version of Go.
package main
import (
"context"
"encoding/json"
"errors"
"flag"
"fmt"
"log"
"net/http"