Created
January 29, 2021 14:28
-
-
Save jjylik/623f1b91cff0c85a84421a339e80d960 to your computer and use it in GitHub Desktop.
Memory blogpost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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