Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/mappymappy/url-query-builder

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mappymappy/url-query-builder

  • v0.0.0-20170629080112-f56eb4e7ffd2
  • Source
  • Go
  • Socket score

Version published
Created
Source

url-query-builder GoDoc

url-query-builder

provide simple and powerful url query builder by struct tag

install

go get github.com/mappymappy/url-query-builder

usage

please see builder_test.go

type TestTargetStruct struct {
	IntField    int       `url:"int_field"`
	Int64Field  int64     `url:"int64_field"`
	StringField string    `url:"string_field"`
	BoolField   bool      `url:"bool_field"`
	TimeField   time.Time `url:"time_field"`
}
target := TestTargetStruct{
	1,
	int64(2),
	"hoge",
	true,
	time.Time{},
}
builder := NewBuilder()
param := builder.BuildURI(target)
fmt.Printf("%s",param)

FAQs

Package last updated on 29 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc