~dricottone/image2ascii

ref: 80cd2b553b0a44ef00114d715cec803559bf936a image2ascii/convert/resize.go -rw-r--r-- 5.8 KiB
Merging branch 'log-more-helpfully' from mjip/PR #22

Log terminal size determination error instead of nil

Log a more descriptive message than nil in the case of an error with terminal
size determination
Migrate from Dep to Go Modules

Go Modules are the preferred way to manage dependencies in Go programs
since version 1.11. The migration process involves:

 1. go mod init git.dominic-ricottone.com/~dricottone/image2ascii
    (replace the host as needed)
 2. Replace the host in files requiring an internal module
    (this was specifically image2ascii.go, convert/convert.go,
    convert/resize.go, and convert/resize_test.go)
 3. go mod tidy
 4. rm -rf vendor/ Gopkg.lock Gopkg.toml
 5. go get -u

go.mod now contains all the information required to build the program.
Log terminal size determination error instead of nil
eaef718c — qeesung 6 years ago
Fixed the high cyclomatic complexity issue
3b332954 — qeesung 6 years ago
update the logic
8ba26814 — qeesung 6 years ago
fixed the lint issue
4ad980ef — qeesung 6 years ago
Refactor the code to match the oop mode for easy mock and test
9e6742da — qeesung 6 years ago
add the fit options to scale the image to fit the screen
a482eea7 — qeesung 6 years ago
refactor the convert package
49547468 — qeesung 6 years ago
Rewrite the go docs
c3affd9f — qeesung 6 years ago
fixed the comment
65420f04 — qeesung 6 years ago
fixed the resize.go code style issue
f71f4386 — qeesung 6 years ago
remove the useless code
c6c0ddbf — qeesung 6 years ago
Add the method to fit the screen
55dcbb9f — qeesung 6 years ago
add some depedencies to calc the terminal size
e7b10cae — qeesung 6 years ago
change the char width to 0.5
85eb98c1 — qeesung 6 years ago
remove some useless code
9b483cdb — qeesung 6 years ago
add the resize package