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
- Host: GitHub
- URL: https://github.com/rogpeppe/httpfetch
- Owner: rogpeppe
- Created: 2015-10-26T23:10:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-26T23:14:21.000Z (over 9 years ago)
- Last Synced: 2025-02-08T14:44:47.799Z (3 months ago)
- Language: Go
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.