/
docs.go
51 lines (51 loc) 路 851 Bytes
/
docs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// fbi is a Go client for the FBI's Most Wanted REST API 馃殧
//
// Installation
//
// go get -u github.com/brittonhayes/fbi
//
//
// Usage
//
// func main() {
// // Initialize fugitives
// f := new(fbi.Fugitives)
//
// // List the fugitives
// err := f.List()
// if err != nil {
// // handle error
// panic(err)
// }
//
// // Print raw results
// fmt.Println(f)
//
// // Print specific items from the list of results
// fmt.Println(f.Items[0])
//
// }
//
//
// Pretty Print Results
//
// func main() {
// // Initialize fugitives
// f := new(fbi.Fugitives)
//
// // List the fugitives as pretty-printed json
// j, err := f.ListPretty()
// if err != nil {
// panic(err)
// }
//
// // Print out the results
// fmt.Println(string(j))
//
// }
//
// Reference
//
// Source API: https://api.fbi.gov/wanted/v1/list
//
package fbi