Skip to content
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 298 Bytes
package main
import (
func main() {
statusCode, _ := strconv.Atoi(os.Args[1])
fmt.Printf("Received Status '%d'.\n", statusCode)
statusMessage, err := StatusCode(statusCode).Message()
if err != nil {
fmt.Printf("Message: '%s'.\n", statusMessage)
You can’t perform that action at this time.