GitXplorerGitXplorer
f

httpclass

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
8f94a9ace6efbb6603955e92db1223cad59c31e8

rm 1.0 which require return even if all cases are covered

fferhatelmas committed 9 years ago
Unverified
991fe9a996ffed6854a6d4a337a1d5e18675214b

comment for stringer

fferhatelmas committed 9 years ago
Unverified
694a6aebb07f0c70fe4a1e1cbb55243adcd433d0

added IsError method

fferhatelmas committed 9 years ago
Unverified
4329447f61042d7180f5c8007def111ffeb18c1e

init

fferhatelmas committed 9 years ago

README

The README file for this repository.

httpclass

Godoc Build Status

Returns the class of a HTTP status code.

Install

go get github.com/ferhatelmas/httpclass

Usage

import "github.com/ferhatelmas/httpclass"

httpclass.Get(http.StatusOK)
//=> httpclass.Success, nil

httpclass.Get(http.StatusBadRequest)
//=> httpclass.ClientError, nil

httpclass.Get(0)
//=> Informational, "Wrong status code 0"

License

MIT © ferhat elmas