Benign go Download

github.com/jackchuka/hpp v0.2.7

GitHub Actions contents write permissionCreates a new HTTP request
SHA-256a885a74102310b2ff6fcd8077c3bd3fa1c1dd5fb5df7438f8f3effde0eb42128

Evidence

CJK Han ideograph sequence types_test.go · lines 8–17
8func TestGourmetResponseUnmarshal(t *testing.T) {
9 data := `{"results":{"api_version":"1.20","results_available":1,"results_returned":"1","results_start":1,"shop":[{"id":"J001","name":"Test Shop","genre":{"code":"G001","name":"居酒屋"},"budget":{"code":"B001","name":"2001~3000円","average":"2500円"},"middle_area":{"code":"Y005","name":"銀座"},"urls":{"pc":"https://example.com"}}]}}`
10 var resp GourmetResponse
11 if err := json.Unmarshal([]byte(data), &resp); err != nil {
12 t.Fatal(err)
13 }
14 if len(resp.Results.Shops) != 1 {
15 t.Fatalf("expected 1 shop, got %d", len(resp.Results.Shops))
16 }
17 if resp.Results.Shops[0].Name != "Test Shop" {
Japanese script detection (Hiragana/Katakana) types_test.go · lines 22–26
22func TestGenreResponseUnmarshal(t *testing.T) {
23 data := `{"results":{"api_version":"1.20","results_available":2,"results_returned":"2","results_start":1,"genre":[{"code":"G001","name":"居酒屋"},{"code":"G002","name":"ダイニングバー"}]}}`
24 var resp GenreResponse
25 if err := json.Unmarshal([]byte(data), &resp); err != nil {
26 t.Fatal(err)
Go test function name types_test.go · line 33
33func TestBudgetResponseUnmarshal(t *testing.T) {
Imports Go's net/http package client.go · lines 3–7
3import (
4 "encoding/json"
5 "fmt"
6 "net/http"
7 "time"
Creates a new HTTP request client.go · lines 55–58
55 req, err := http.NewRequest("GET", u+"?"+vals.Encode(), nil)
56 if err != nil {
57 return fmt.Errorf("creating request: %w", err)
58 }

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.