Skip to content

Instantly share code, notes, and snippets.

@jjylik
Created January 29, 2021 14:28
Show Gist options
  • Save jjylik/623f1b91cff0c85a84421a339e80d960 to your computer and use it in GitHub Desktop.
Save jjylik/623f1b91cff0c85a84421a339e80d960 to your computer and use it in GitHub Desktop.
Memory blogpost
package main
import (
"math/rand"
"os"
"time"
)
func main() {
d := time.Now().Local().Add(time.Hour * time.Duration(2)).String()
dir, _ := os.Getwd()
randInt := rand.Intn(100)
time.Sleep(20*time.Second)
println(&d)
println(d)
println(&dir)
println(dir)
println(randInt)
println(&randInt)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment