From e3b2b03d5587f8285aefe4547498c7bc60603443 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Mon, 27 May 2019 16:52:48 +0200 Subject: [PATCH] change from rust to go as I could not figure out the image loading problem in rust --- .gitignore | 11 +- .idea/copyright/MPL_2_0.xml | 6 + .idea/copyright/profiles_settings.xml | 3 + .idea/misc.xml | 13 - .idea/vcs.xml | 6 - .idea/workspace.xml | 436 +++--- Cargo.lock | 1994 ------------------------- Cargo.toml | 22 - Makefile | 7 + README.md | 31 +- bin/ecload | Bin 0 -> 9687932 bytes cmd/ecload/ecload | Bin 0 -> 9687932 bytes cmd/ecload/main.go | 60 + ecload.iml | 12 +- go.mod | 12 + go.sum | 53 + pkg/ecload/ecload.go | 104 ++ pkg/ecload/fetcher.go | 68 + pkg/ecload/logger.go | 14 + pkg/ecload/pdf.go | 51 + src/error.rs | 41 - src/loader.rs | 281 ---- src/main.rs | 86 -- 23 files changed, 631 insertions(+), 2680 deletions(-) create mode 100644 .idea/copyright/MPL_2_0.xml create mode 100644 .idea/copyright/profiles_settings.xml delete mode 100644 .idea/vcs.xml delete mode 100644 Cargo.lock delete mode 100644 Cargo.toml create mode 100644 Makefile create mode 100755 bin/ecload create mode 100755 cmd/ecload/ecload create mode 100644 cmd/ecload/main.go create mode 100644 go.mod create mode 100644 go.sum create mode 100644 pkg/ecload/ecload.go create mode 100644 pkg/ecload/fetcher.go create mode 100644 pkg/ecload/logger.go create mode 100644 pkg/ecload/pdf.go delete mode 100644 src/error.rs delete mode 100644 src/loader.rs delete mode 100644 src/main.rs diff --git a/.gitignore b/.gitignore index d8f6ff7..a87d1cb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,12 @@ *~ .DS_Store *.swp -/target -**/*.rs.bk +**/.idea/workspace.xml +**/.idea/tasks.xml +*.exe +*.dll +*.so +*.dylib +*.test +*.out +.glide/ diff --git a/.idea/copyright/MPL_2_0.xml b/.idea/copyright/MPL_2_0.xml new file mode 100644 index 0000000..d565bec --- /dev/null +++ b/.idea/copyright/MPL_2_0.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..2476fa4 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 30ccc35..639900d 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,19 +1,6 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 047ca12..7524a22 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,51 +1,51 @@ - - - - - + - + + - - - + + + - - - - - - - - - - - + + - - + - - + + - - + + - - + + + + + + + + + + + + + @@ -56,49 +56,51 @@ - got - dpi - Px - PageFormat - format - saved - error! + exists + RegisterImageOptionsReader + downloadToFile - -