Skip to content

Instantly share code, notes, and snippets.

@fearblackcat
fearblackcat / checkpasword.md
Last active November 14, 2023 03:25
password check in golang
package main

import (
        "fmt"
        "unicode"
)

func validPassword(s string) error {
next:
@vinzenz
vinzenz / dial-pq-via-ssh.go
Last active March 26, 2024 18:40
Use postgres via SSH in Golang
package main
import (
"database/sql"
"database/sql/driver"
"fmt"
"net"
"os"
"time"