fix package names
This commit is contained in:
parent
f55f472ae7
commit
a3e02f6243
@ -1,4 +1,4 @@
|
|||||||
package errgo
|
package errno
|
||||||
|
|
||||||
type ErrorT uint16
|
type ErrorT uint16
|
||||||
|
|
||||||
@ -309,8 +309,9 @@ func (err ErrorT) ID() uint16 {
|
|||||||
// NewErrorT is a factory for ErrorT.
|
// 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
|
// 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:
|
// 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) {
|
func NewErrorT(id uint16, msg string) (ErrorT, error) {
|
||||||
if id < userErrorIDSpaceStart {
|
if id < userErrorIDSpaceStart {
|
||||||
return ErrorT(0), EINVAL
|
return ErrorT(0), EINVAL
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package exits
|
package exit
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package exits
|
package exit
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitlab.com/CRThaze/cworthy/errno"
|
"gitlab.com/CRThaze/cworthy/errno"
|
Loading…
x
Reference in New Issue
Block a user