Skip to content

Commit

Permalink
1. add 2 exit code constant
Browse files Browse the repository at this point in the history
  • Loading branch information
romberli committed Dec 23, 2020
1 parent 7558165 commit efd5556
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions constant/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@ import (
)

const (
ZeroInt = 0
MinUInt uint = 0
MaxUInt = ^uint(0)
MaxInt = int(^uint(0) >> 1)
MinInt = ^MaxInt
MinPort = 1
MaxPort = 65535
EmptyString = ""
CurrentDir = "./"
DefaultRandomString = "sadfio3mj23gsk9lj8ou"
DefaultRandomInt = 345920654907418
TrueString = "true"
FalseString = "false"
CRLFString = "\n"
DefaultFileMode os.FileMode = 0644
DefaultExecFileMode os.FileMode = 0755
DefaultNormalExitCode = 0
DefaultAbnormalExitCode = 1
ZeroInt = 0
MinUInt uint = 0
MaxUInt = ^uint(0)
MaxInt = int(^uint(0) >> 1)
MinInt = ^MaxInt
MinPort = 1
MaxPort = 65535
EmptyString = ""
CurrentDir = "./"
DefaultRandomString = "sadfio3mj23gsk9lj8ou"
DefaultRandomInt = 345920654907418
TrueString = "true"
FalseString = "false"
CRLFString = "\n"
DefaultFileMode os.FileMode = 0644
DefaultExecFileMode os.FileMode = 0755
)

0 comments on commit efd5556

Please sign in to comment.