This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http client | |
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | |
if !strings.Contains(r.URL.Path, "trepd101.pnet.ch") { | |
http.Error(w, "not found", http.StatusNotFound) | |
return | |
} | |
fmt.Fprint(w, response) | |
})) | |
defer ts.Close() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
042587c704e41df84c5aa6c31c35d9e85bc903141e79eddeb8601c4fffd7e324040e5d06158114a52fe9a02ae6907afa057fc1b1acd11ca64584e7bc7fca8d220e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"archive/zip" | |
"io" | |
"log" | |
"os" | |
"path/filepath" | |
) |