mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-26 11:01:07 +01:00
restructured the project to comply community guideline, for others check release note
This commit is contained in:
7
internal/http/status_code.go
Normal file
7
internal/http/status_code.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package http
|
||||
|
||||
import "net/http"
|
||||
|
||||
func IsSuccess(status int) bool {
|
||||
return status >= http.StatusOK && status < http.StatusMultipleChoices
|
||||
}
|
||||
Reference in New Issue
Block a user