Skip to content

Instantly share code, notes, and snippets.

@fsouza
Created June 7, 2011 02:23
Show Gist options
  • Save fsouza/1011569 to your computer and use it in GitHub Desktop.
Save fsouza/1011569 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"http"
)
func CleanCache(blogUrl string) {
content := make([]byte, 1000000)
client := new(http.Client)
response, _, _ := client.Get(blogUrl)
response.Body.Read(content)
fmt.Printf("%s", content)
}
func main() {
CleanCache("http://www.franciscosouza.com")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment