Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidCai1111 committed Nov 25, 2016
1 parent cb0761e commit 7299421
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func Example() {
http.ListenAndServe(":8080", cors.Handler(mux))
}

func Example_SetExposeHeaders() {
func ExampleOption_SetExposeHeaders() {
mux := http.NewServeMux()
mux.HandleFunc("/", func(res http.ResponseWriter, req *http.Request) {
res.Write([]byte("Hello World"))
Expand All @@ -25,7 +25,7 @@ func Example_SetExposeHeaders() {
cors.SetExposeHeaders([]string{"ETag"})))
}

func Example_SetCredentials() {
func ExampleOption_SetCredentials() {
mux := http.NewServeMux()
mux.HandleFunc("/", func(res http.ResponseWriter, req *http.Request) {
res.Write([]byte("Hello World"))
Expand All @@ -35,7 +35,7 @@ func Example_SetCredentials() {
cors.SetExposeHeaders([]string{"ETag"}), cors.SetCredentials(true)))
}

func Example_SetAllowOriginValidator() {
func ExampleOption_SetAllowOriginValidator() {
mux := http.NewServeMux()
mux.HandleFunc("/", func(res http.ResponseWriter, req *http.Request) {
res.Write([]byte("Hello World"))
Expand Down

0 comments on commit 7299421

Please sign in to comment.