Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

go-seo4ajax

Golang connector for Seo4Ajax GoDoc.

Code and tests is highly adapted from connect middleware.

http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
    if seo4ajax.IsPrerender(r) {
        err := seo4ajax.GetPrerenderedPage(w, r)
        if err != nil {
            log.Print(err.Error())
        }
    } else {
        fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
    }
})
You can’t perform that action at this time.