package main
import (
"crypto/rand"
"crypto/sha256"
"crypto/tls"
"database/sql"
"fmt"
"net/http"
"net/http/httptest"
"os/exec"
)
func safeOperations(db *sql.DB) {
db.Query("SELECT * FROM users WHERE id = ?", 1)
exec.Command("ls", "-la")
h := sha256.New()
h.Write([]byte("data"))
http.Get("https://api.example.com/health")
http.NewRequest("GET", "https://api.example.com/health", nil)
ts := httptest.NewServer(nil)
defer ts.Close()
http.Get(ts.URL + "/x")
_ = &tls.Config{MinVersion: tls.VersionTLS12}
http.SetCookie(w, &http.Cookie{Name: "sid", Value: "ok", Secure: true, HttpOnly: true})
token := make([]byte, 16)
rand.Read(token)
_ = token
fmt.Println("Application started")
}