Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

lukasdietrich/querymapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

querymapper coverage

Mapper for net/url query values in Go.

import (
  "net/url"
  
  "github.com/lukasdietrich/querymapper"
)

type MyStruct struct {
  SomeField int `query:"some-field"`
}

func doSomething(query url.Values) (MyStruct, error) {
  val s MyStruct
  return s, querymapper.MapQuery(query, &s)
}

About

Golang mapper for net/url query values

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages