mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
25 lines
392 B
Go
25 lines
392 B
Go
// Copyright © 2016 Aaron Longwell
|
|
//
|
|
// Use of this source code is governed by an MIT licese.
|
|
// Details in the LICENSE file.
|
|
|
|
package trello
|
|
|
|
import (
|
|
"net/url"
|
|
)
|
|
|
|
type Arguments map[string]string
|
|
|
|
func Defaults() Arguments {
|
|
return make(Arguments)
|
|
}
|
|
|
|
func (args Arguments) ToURLValues() url.Values {
|
|
v := url.Values{}
|
|
for key, value := range args {
|
|
v.Set(key, value)
|
|
}
|
|
return v
|
|
}
|