goreleaser v0.0.0 release

This commit is contained in:
Dagen Brock 2019-11-03 15:01:49 -06:00
parent 0d655e011c
commit 9dd98b7802
4 changed files with 67 additions and 3 deletions

24
.github/workflows/release.yml vendored Normal file
View File

@ -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 }}

41
.goreleaser.yml Normal file
View File

@ -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:'

View File

@ -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.

View File

@ -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()
}
}