Initial commit

This commit is contained in:
2022-03-19 18:20:30 +00:00
commit 44e52ce2cc
6 changed files with 122 additions and 0 deletions

21
Main.go Normal file
View File

@@ -0,0 +1,21 @@
package main
import (
"fmt"
"io/ioutil"
"net/http"
"os"
)
func main() {
var insultURL string = "https://evilinsult.com/generate_insult.php"
resp, err := http.Get(insultURL)
if err != nil {
fmt.Println("FATAL: Cannot get insult.")
os.Exit(1)
}
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}