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