~dricottone/image2ascii

image2ascii/convert/resize_test.go -rw-r--r-- 7.6 KiB
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.
eaef718c — qeesung 6 years ago
Fixed the high cyclomatic complexity issue
8ba26814 — qeesung 6 years ago
fixed the lint issue
adffe23d — qeesung 6 years ago
add the mock terminal
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
3481ed70 — qeesung 6 years ago
Add some comments
c4768093 — qeesung 6 years ago
Add ScaleImage and Image2ASCII benchmark
67bce566 — qeesung 6 years ago
fixed test
5faf6387 — qeesung 6 years ago
add convert test case
06e9c87e — qeesung 6 years ago
add scale image example
1d1c0ee7 — qeesung 6 years ago
add scale image test cases