fix package names
This commit is contained in:
parent
f55f472ae7
commit
a3e02f6243
@ -1,4 +1,4 @@
|
||||
package errgo
|
||||
package errno
|
||||
|
||||
type ErrorT uint16
|
||||
|
||||
@ -309,8 +309,9 @@ func (err ErrorT) ID() uint16 {
|
||||
// NewErrorT is a factory for ErrorT.
|
||||
// In the event that an invalid id is provided it will return an empty ErrorT in the first value
|
||||
// and one of the following in the second:
|
||||
// EINVAL When the id provided is not >32767
|
||||
// EIDINUSE When the ID is already in use.
|
||||
//
|
||||
// EINVAL When the id provided is not >32767
|
||||
// EIDINUSE When the ID is already in use.
|
||||
func NewErrorT(id uint16, msg string) (ErrorT, error) {
|
||||
if id < userErrorIDSpaceStart {
|
||||
return ErrorT(0), EINVAL
|
||||
|
@ -1,4 +1,4 @@
|
||||
package exits
|
||||
package exit
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package exits
|
||||
package exit
|
||||
|
||||
import (
|
||||
"gitlab.com/CRThaze/cworthy/errno"
|
Loading…
Reference in New Issue
Block a user