An open API service indexing awesome lists of open source software.

https://github.com/rogpeppe/httpfetch

An illustration of testing in Go
https://github.com/rogpeppe/httpfetch

Last synced: about 2 months ago
JSON representation

An illustration of testing in Go

Awesome Lists containing this project

README

        

# httpfetch
--
import "github.com/rogpeppe/httpfetch"

Package httpfetch is an illustrative package used for a talk on testing in Go.
The talk is at
http://talks.godoc.org/github.com/rogpeppe/talks/testing.talk/testing.slide .

## Usage

#### func GetURLAsString

```go
func GetURLAsString(url string) (string, error)
```
GetURLAsString makes a GET request to the given URL and returns the result as a
string.