From 9dd98b78022688a974143c01cdeb588e46cacc64 Mon Sep 17 00:00:00 2001 From: Dagen Brock Date: Sun, 3 Nov 2019 15:01:49 -0600 Subject: [PATCH] goreleaser v0.0.0 release --- .github/workflows/release.yml | 24 ++++++++++++++++++++ .goreleaser.yml | 41 +++++++++++++++++++++++++++++++++++ README.md | 2 +- hihex.go | 3 +-- 4 files changed, 67 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/release.yml create mode 100644 .goreleaser.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e7d4412 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +name: goreleaser + +on: + pull_request: + push: + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v1 + - + name: Set up Go + uses: actions/setup-go@v1 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v1 + with: + version: latest + args: release + env: + GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..4c15319 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,41 @@ +# This is an example goreleaser.yaml file with some sane defaults. +# Make sure to check the documentation at http://goreleaser.com +before: + hooks: + # you may remove this if you don't use vgo + #- go mod tidy + # you may remove this if you don't need go generate + #- go generate ./... +builds: +- env: + - CGO_ENABLED=0 + goos: + - windows + - darwin + - linux + - solaris + - freebsd +archives: +- replacements: + darwin: MacOS + linux: Linux + windows: Windows + freebsd: FreeBSD + solaris: Solaris + 386: 32bit + amd64: 64bit + format_overrides: + - goos: windows + format: zip + - goos: darwin + format: zip +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' diff --git a/README.md b/README.md index 4e6d98f..891b610 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # hihex -The `hihex` utility works like the `hexdump` command with a special addition. It allows you to view the character output of ASCII values that have the high bit set. +The `hihex` utility works like the `hexdump` command with a special addition to view "high-bit ascii". This allows you to view the character output of ASCII values that have the high bit set wheras hexdump doesn't understand these values. This is particularly useful for examining binary files from older computers, such as the Apple II, where they would commonly use the high bit versions of characters to display text in other modes such as inverse. diff --git a/hihex.go b/hihex.go index 1803ec7..3ee048c 100644 --- a/hihex.go +++ b/hihex.go @@ -64,7 +64,7 @@ func main() { var data, err = ioutil.ReadFile(filename) check(err) if *verbose == true { - fmt.Printf("hihex v0.0 by Dagen Brock\n\n") + fmt.Printf("hihex v0.0.0 by Dagen Brock\n\n") fmt.Println("Now processing filename: ", filename) fmt.Println("File Size (decimal): ", len(data)) fmt.Printf("File Size (hexadecimal): %X\n", len(data)) @@ -113,6 +113,5 @@ func main() { } i += *chunksize fmt.Println() - } }