From 523c3443f3bd6190c770ab9c1b4beeca167b4d48 Mon Sep 17 00:00:00 2001 From: Florian Loch Date: Wed, 7 Feb 2024 12:03:14 +0100 Subject: [PATCH] chore: init project --- .github/workflows/main.yaml | 26 ++++++++++++++++++++++++++ LICENSE | 21 +++++++++++++++++++++ README.md | 4 ++++ go.mod | 3 +++ 4 files changed, 54 insertions(+) create mode 100644 .github/workflows/main.yaml create mode 100644 LICENSE create mode 100644 README.md create mode 100644 go.mod diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..46f5b61 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,26 @@ +name: main +on: push +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + go: [ '1.21' ] + name: go ${{ matrix.go }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go }} + - name: Checking Code for Proper Formatting... + run: | + diff=$(go fmt ./...) + if [ -n "$diff" ]; then + echo "Some files are not properly formatted:" + echo "$diff" + exit 1 + fi + - name: Vetting Go Code... + run: go vet ./... + - name: Testing Go Code... + run: go test -race -v ./... diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d73063b --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Exaring AG + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..bae27ce --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# go-hibp-download + +`go-hibp-download` provides functionality to keep a local copy of the HIBP leaked password database in sync with the upstream version at https://haveibeenpowned.com. +In addition to syncing the database, the library allows to export it into a single list — the former distribution format of the database. diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..f7bec04 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/exaring/go-hibp-sync + +go 1.21.6