Skip to content

Commit

Permalink
Creates example folder with invokations to some services
Browse files Browse the repository at this point in the history
  • Loading branch information
c4milo committed Nov 3, 2014
1 parent 3df82da commit aaf70a6
Show file tree
Hide file tree
Showing 9 changed files with 48,144 additions and 2 deletions.
19 changes: 19 additions & 0 deletions examples/usda-awdb-test/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package main

import "fmt"

func main() {
service := NewAwdbWebService("http://www.wcc.nrcs.usda.gov/awdbWebService/services", false)
amIthere, err := service.AreYouThere(&areYouThere{})
if err != nil {
panic(err)
}

fmt.Printf("Alive?: %t\n", amIthere.Return_)

stations, err := service.GetStations(&getStations{})
if err != nil {
panic(err)
}
fmt.Printf("Stations: %v\n", stations.Return_)
}
Loading

0 comments on commit aaf70a6

Please sign in to comment.