DEV Community

Takahiro Kudo
Takahiro Kudo

Posted on

3 2

Go - Build URL Query String

#go
params := url.Values{
    "keyword": {"some"},
}
reqUrl := "https://yourendpoint.example.com?" + params.Encode()
Enter fullscreen mode Exit fullscreen mode

Reference

https://golang.org/pkg/net/url/#URL.Query

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay