Fix lint errors

This commit is contained in:
Manuel de Brito Fontes 2017-04-02 11:07:07 -03:00
parent ea7f943160
commit 4103537ea1
6 changed files with 20 additions and 19 deletions

View file

@ -2,10 +2,10 @@ package main
import (
"fmt"
"net/http"
"strings"
"math/rand"
"net/http"
"strconv"
"strings"
)
// Sample authentication service returning several HTTP headers in response

View file

@ -6,7 +6,8 @@ import (
)
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "UserID: %s, UserRole: %s", r.Header.Get("UserID"), r.Header.Get("UserRole"))}
fmt.Fprintf(w, "UserID: %s, UserRole: %s", r.Header.Get("UserID"), r.Header.Get("UserRole"))
}
// Sample "echo" service displaying UserID and UserRole HTTP request headers
func main() {