This repository has been archived on 2026-09-07 . You can view files and clone it. You cannot open issues or pull requests or push a commit.
f2e7c36efb23a55c886e79fc77023868e415a31d
CI / test (pull_request) Successful in 35s
Adds .gitea/workflows/ci.yml: on push to main and on pull requests, run `go vet ./...` then `go test ./...` in a golang:1.21-alpine container. Also removes .github/workflows/test.yml, which only triggered on a `develop` branch that no longer exists and depended on an external Discord notification action and an unset DISCORD_WEBHOOK secret. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Go Hash
Simple wrapper functions which take arbitrary string input and return string hashes in hex encoding.
The author is aware that this package is somewhat perfunctory, but likes not having to think about the crypto packages.
Example
package main
import (
"errors"
"fmt"
"os"
"github.com/annybs/go/hash"
)
func main() {
if len(os.Args) < 2 {
fmt.Println(errors.New("input required"))
os.Exit(1)
}
fmt.Println(hash.SHA256(os.Args[1]))
}
Execute go run main.go "any test string you like" to create SHA256 output.
License
See LICENSE.md
Languages
Go
100%