-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.go
23 lines (23 loc) · 941 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Package whatever holds just one type - Params.
//
// The Params type is map[string]interface{} with
// some useful methods to it.
//
// This type was initially created to be used as structure
// in which JSON requests are to be unmarshaled and accessed
// with ease. Because of this, the Params type have a getter
// for time.Time that will parse a Date string that follows
// the RFC3339 format (the Javascript build-in JSON format).
//
// There is a method that can transform the Params structure to
// url.Values structure with specified prefix and suffix, for the
// result can be used with Gorilla`s schema or Goji`s params packages.
//
// Although some of the getters are useful for unmarshaled JSON
// date you can also Add your own values to the Params structure.
//
// You can also access nested Params objects.
//
// If you need you can validate the existence of a specific key by
// using the Required method.
package whatever