hoslo
hoslo
```golang package main import ( "encoding/json" "fmt" gojson "github.com/goccy/go-json" ) type Media []*Image type Image struct { Pos Pos `json:"pos"` OldURL string `json:"old_url"` FileName string `json:"file_name"` URL string `json:"url"` }...
How to do go httptest?like gin ```go package main import ( "net/http" "net/http/httptest" "testing" "github.com/stretchr/testify/assert" ) func TestPingRoute(t *testing.T) { router := setupRouter() w := httptest.NewRecorder() req, _ := http.NewRequest(http.MethodGet,...
#### What happened: Streaming proto can not generate http code #### What you expected to happen: generate http code #### How to reproduce it (as minimally and precisely as possible):...
 
#### What happened: panic when load apollo yml config #### What you expected to happen: do not panic #### How to reproduce it (as minimally and precisely as possible): ```golang...
```shell ufile download fileName: 67F0C1CA4548440EP08A07B6.jpg, trace: {DNSLookup:1.59315ms ConnTime:10.074076038s TCPConnTime:0s TLSHandshake:0s ServerTime:84.875535ms ResponseTime:20.539µs TotalTime:10.158972112s IsConnReused:true IsConnWasIdle:false ConnIdleTime:0s RequestAttempt:1 RemoteAddr:10.23.255.247:80}, status: 200 ``` ```golang // define global client defaultTransport := &http.Transport{ Proxy:...
```golang client := redis.NewClient(&redis.Options{ Addr: "localhost:6379", Password: "", DB: 0, // use default DB }) rc := rockscache.NewClient(client, rockscache.NewDefaultOptions()) rc.Fetch("test1", 60 * time.Second, func () (string, error) { return "test1",...
## Your Question can i call the model's method in the diy method template? ## The document you expected this should be explained ```golang type User struct { Id uint64...
**Describe the bug** Deployed on k8s, an error 503 occurs when accessing the domain name. The ingress controller I use is apisix **To Reproduce** Deply on k8s use helm **Expected...