This file contains hidden or 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 session | |
import ( | |
"context" | |
"database/sql" | |
"encoding/json" | |
"fmt" | |
"time" | |
"github.com/jackc/pgx/v5/pgxpool" |
This file contains hidden or 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 validate | |
import ( | |
"regexp" | |
"strings" | |
) | |
type validator struct { | |
errors map[string][]string | |
valid bool |