Skip to content
Snippets Groups Projects
Select Git revision
  • feature/v1.3.60
  • develop default protected
  • main protected
  • release/v1.0.7
  • release/v1.0.0
  • feature/v0.9.5
  • release/v0.6.2
  • hotfix/v0.5.7
  • release/v0.5.6
  • release/v0.5.5
  • hotfix/v0.5.4
  • hotfix/v0.5.3
  • hotfix/v0.5.2
  • release/v0.5.1
  • hotfix/v0.5.0
  • hotfix/v0.4.9
  • hotfix/v0.4.8
  • hotfix/v0.4.7
  • release/v0.4.6
  • hotfix/v0.4.5
  • v1.3.55
  • v1.3.52
  • v1.3.50
  • v1.3.45
  • v1.3.42
  • v1.3.41
  • v1.3.40
  • v1.3.38
  • v1.3.37
  • v1.3.36
  • v1.3.35
  • v1.3.34
  • v1.3.33
  • v1.3.32
  • v1.3.31
  • v1.3.30
  • v1.3.29
  • v1.3.28
  • v1.3.27
  • v1.3.26
40 results

constants.go

constants.go 17.51 KiB
package constants

import (
	"os"
)

//goland:noinspection ALL
const (
	EmptyArray                                = "[]"
	FirstItemEmptyStringArray                 = "[\"\"]"
	EmptyStatus                               = "Empty Status"
	FilePath                                  = "File Path"
	DirectoryPath                             = "Directory Path"
	Dot                                       = "."
	UpperCaseA                                = 'A'
	UpperCaseZ                                = 'Z'
	LowerCaseA                                = 'a'
	LowerCaseZ                                = 'z'
	LowerCase                                 = LowerCaseA - UpperCaseA // c - 'A' + 'a' (ref: https://bit.ly/3mFnUPW) a - A = 32 also works
	UpperCase                                 = UpperCaseA - LowerCaseA // c - 'a' + 'A'
	NewLineMac                                = "\n"
	NewLineUnix                               = "\n"
	NewLineWindows                            = "\r\n"
	Tab                                       = "\t"
	TabV                                      = "\v"
	Hash                                      = "#"
	DoubleHash                                = "##"
	TrippleHash                               = "###"
	HashSpace                                 = "# "
	DoubleHashSpace                           = "## "
	Space                                     = " "
	Hyphen                                    = "-"
	Semicolon                                 = ";"
	Comma                                     = ","
	CommaUnixNewLine                          = ",\n"
	CommaSpace                                = ", "
	SpaceColonSpace                           = " : "
	Pipe                                      = "|"
	QuestionMarkSymbol                        = "?"
	NilString                                 = "nil"
	SprintValueFormat                         = "%v"
	SprintValueDoubleQuotationFormat          = "\"%v\""
	SprintNumberFormat                        = "%d"
	SprintFullPropertyNameValueFormat         = "%#v"
	SprintPropertyNameValueFormat             = "%+v"
	SprintTypeFormat                          = "%T"
	SprintDoubleQuoteFormat                   = "%q"
	SprintSingleQuoteFormat                   = "'%s'"
	SprintStringFormat                        = "%s"
	SprintThridBracketQuoteFormat             = "[\"%v\"]"
	EqualSymbol                               = "="
	DoubleEqualSymbol                         = "=="
	TrippleEqualSymbol                        = "==="
	NotEqualSymbol                            = "!="
	JsNotEqualSymbol                          = "!=="
	SqlNotEqualSymbol                         = "<>"
	LeftLessSymbol                            = "<"
	LeftLessEqualSymbol                       = "<="
	LeftGreaterSymbol                         = ">"
	LeftGreaterEqualSymbol                    = ">="
	InvalidNotFoundCase                       = -1
	Zero                                      = 0
	NotImplemented                            = "Not Implemented"
	SingleQuoteSymbol                 byte    = '\''
	DoubleQuoteSymbol                 byte    = '"'
	SingleQuoteStringSymbol                   = "'"
	DoubleQuoteStringSymbol                   = "\""
	DoubleDoubleQuoteStringSymbol             = "\"\""
	ParenthesisStartSymbol            byte    = '('
	ParenthesisEndSymbol              byte    = ')'
	CurlyStartSymbol                  byte    = '{'
	CurlyEndSymbol                    byte    = '}'
	SquareStartSymbol                 byte    = '['
	SquareEndSymbol                   byte    = ']'
	LineFeedUnix                              = '\n'
	CarriageReturn                            = '\r'
	FormFeed                                  = '\f'
	SpaceByte                                 = ' '
	TabByte                                   = '\t'
	LineFeedUnixByte                          = '\n'
	CarriageReturnByte                        = '\r'
	FormFeedByte                              = '\f'
	TabVByte                                  = '\v'
	MaxUnit8                          byte    = 255
	OtherPathSeparator                        = "/"
	WindowsPathSeparator                      = "\\"
	WindowsOS                                 = "windows"
	LowerCaseFileColon                        = "file:"
	DoubleBackSlash                           = "\\\\"
	TripleBackSlash                           = "\\\\\\"
	BackSlash                                 = "\\"
	DoubleForwardSlash                        = "//"
	TripleForwardSlash                        = "///"
	BackwardAndForwardSlashes                 = "\\//"
	ForwardSlash                              = "/"
	UriSchemePrefixStandard                   = "file:///"
	UriSchemePrefixTwoSlashes                 = "file://"
	Underscore                                = "_"
	Colon                                     = ":"
	Dash                                      = "-"
	DoubleDash                                = "--"
	DoubleUnderscore                          = "__"
	HypenAngelRight                           = "->"
	GoPath                                    = "GOPATH"
	GoBinPath                                 = "GOBIN"
	Go111ModuleEnvironment                    = "GO111MODULE"
	On                                        = "on"
	PathSeparator                             = string(os.PathSeparator)
	DoublePathSeparator                       = PathSeparator + PathSeparator
	Dollar                                    = "$"
	DoubleDollar                              = "$$"
	Percent                                   = "%"
	DoublePercent                             = "%%"
	One                                       = 1
	SemiColon                                 = ";"
	Path                                      = "PATH"
	Unix                                      = "Unix OS"
	Windows                                   = "Windows OS"
	SymbolicLinkCreationCommandName           = "ln"
	SymbolicLinkCreationArgument              = "-s"
	Architecture64                            = "X64"
	Architecture32                            = "X32"
	LongPathUncPrefix                         = `\\?\UNC\`
	LongPathQuestionMarkPrefix                = `\\?\`
	SingleHash                                = "#"
	EmptyString                               = ""
	EndOfBlock                                = "}"
	EndOfLineMark                             = ";"
	StartOfBlock                              = "{"
	MinusOne                                  = -1
	InvalidValue                              = -1
	InvalidLineNumber                         = -1
	TakeAllMinusOne                           = -1
	NoLimits                                  = -1
	DontCompare                               = -1
	WildcardSymbol                            = "*"
	WildcardChar                              = '*'
	WildcardRune                      rune    = '*'
	ParenthesisStart                          = "("
	ParenthesisEnd                            = ")"
	CurlyStart                                = "{"
	CurlyEnd                                  = "}"
	SquareStart                               = "["
	SquareEnd                                 = "]"
	ZeroChar                          byte    = '0'
	NineChar                          byte    = '9'
	HyphenChar                        byte    = '-'
	MaxUnit8Rune                      rune    = 255
	MaxUnit8AsInt16                   int16   = 255
	MaxUnit8AsInt                     int     = 255
	MaxUnit8AsFloat32                 float32 = 255
	ParenthesisStartRune              rune    = '('
	ParenthesisEndRune                rune    = ')'
	CurlyStartRune                    rune    = '{'
	CurlyEndRune                      rune    = '}'
	SquareStartRune                   rune    = '['
	SquareEndRune                     rune    = ']'
	ZeroRune                          rune    = '0'
	NineRune                          rune    = '9'
	HyphenRune                        rune    = '-'
	UpperCaseARune                    rune    = 'A'
	UpperCaseZRune                    rune    = 'Z'
	LowerCaseARune                    rune    = 'a'
	LowerCaseZRune                    rune    = 'z'
	LowerCaseRune                     rune    = LowerCaseA - UpperCaseA         // c - 'A' + 'a' (ref: https://bit.ly/3mFnUPW) a - A = 32 also works
	UpperCaseRune                     rune    = UpperCaseARune - LowerCaseARune // c - 'a' + 'A'
	NoElements                                = "{No Element}"
	NoItems                                   = "{No Items}"
	NoItemsSqaure                             = "[No Items]"
	NoElementsSqaure                          = "[No Element]"
	DoubleNewLine                             = "\n\n"
	DotSymbol                                 = "."
	DotChar                           byte    = '.'
	ForwardChar                       byte    = '/'
	BackwardChar                      byte    = '\\'
	AndChar                           byte    = '&'
	PipeChar                          byte    = '|'
	ParenthesisStartChar              byte    = '('
	ParenthesisEndChar                byte    = ')'
	CurlyBraceStartChar               byte    = '{'
	CurlyBraceEndChar                 byte    = '}'
	SqaureBraceStartChar              byte    = '['
	SqaureBraceEndChar                byte    = ']'
	AngleStartChar                    byte    = '<'
	AngleEndChar                      byte    = '>'
	QuestionChar                      byte    = '?'
	CommaChar                         byte    = ','
	ExclaimanationChar                byte    = '!'
	HashChar                          byte    = '#'
	DollarChar                        byte    = '$'
	AstrekChar                        byte    = '*'
	PlusChar                          byte    = '+'
	MinusChar                         byte    = '-'
	UnderscoreChar                    byte    = '_'
	SingleQuoteChar                   byte    = '\''
	DoubleQuoteChar                   byte    = '"'
	ColonChar                         byte    = ':'
	SemicolonChar                     byte    = ';'
	SpaceChar                         byte    = ' '
	AtChar                            byte    = '@'
	EqualChar                         byte    = '='
	LeftLessChar                      byte    = '<'
	LeftGreaterChar                   byte    = '>'
	DotRune                           rune    = '.'
	ForwardRune                       rune    = '/'
	BackwardRune                      rune    = '\\'
	AndRune                           rune    = '&'
	PipeRune                          rune    = '|'
	CurlyBraceStartRune               rune    = '{'
	CurlyBraceEndRune                 rune    = '}'
	SqaureBraceStartRune              rune    = '['
	SqaureBraceEndRune                rune    = ']'
	AngleStartRune                    rune    = '<'
	AngleEndRune                      rune    = '>'
	QuestionRune                      rune    = '?'
	CommaRune                         rune    = ','
	ExclaimanationRune                rune    = '!'
	HashRune                          rune    = '#'
	DollarRune                        rune    = '$'
	AstrekRune                        rune    = '*'
	PlusRune                          rune    = '+'
	MinusRune                         rune    = '-'
	UnderscoreRune                    rune    = '_'
	SingleQuoteRune                   rune    = '\''
	DoubleQuoteRune                   rune    = '"'
	AtRune                            rune    = '@'
	ColonRune                         rune    = ':'
	SemicolonRune                     rune    = ';'
	SpaceRune                         rune    = ' '
	EqualRune                         rune    = '='
	LeftLessRune                      rune    = '<'
	LeftGreaterRune                   rune    = '>'
	MinusTwo                                  = -2
	MinusThree                                = -3
	MinusFour                                 = -4
	Two                                       = 2
	Three                                     = 3
	Four                                      = 4
	Five                                      = 5
	Six                                       = 6
	Seven                                     = 7
	Eight                                     = 8
	Nine                                      = 9
	Ten                                       = 10
	AstrekSymbol                              = "*"
	PlusSymbol                                = "+"
	TeldaSymbol                               = "~"
	TeldaChar                         byte    = '~'
	TeldaRune                         rune    = '~'
	BrokenLongPathUncPrefix                   = `\?\UNC\`
	BrokenLongPathQuestionMarkPrefix          = `\?\`
	N0                                        = 0
	N1                                        = 1
	N2                                        = 2
	N3                                        = 3
	N4                                        = 4
	N5                                        = 5
	N6                                        = 6
	N7                                        = 7
	N8                                        = 8
	N9                                        = 9
	N10                                       = 10
	N11                                       = 11
	N12                                       = 12
	N13                                       = 13
	N14                                       = 14
	N15                                       = 15
	N16                                       = 16
	N17                                       = 17
	N18                                       = 18
	N19                                       = 19
	N20                                       = 20
	N21                                       = 21
	N22                                       = 22
	N23                                       = 23
	N24                                       = 24
	N25                                       = 25
	N26                                       = 26
	N27                                       = 27
	N28                                       = 28
	N29                                       = 29
	N30                                       = 30
	N31                                       = 31
	N32                                       = 32
	DistributorID                             = "Distributor ID"
	Description                               = "Description"
	Release                                   = "Release"
	Codename                                  = "Codename"
	HyphenA                                   = "-a"
	UnameArgForReleaseInfo                    = "-r"
	ArgumentForReleaseDate                    = "-v"
	LsbCommand                                = "lsb_release"
	UnameCommand                              = "uname"
	Shell                                     = "sh"
	Bash                                      = "bash"
	BinShellCmd                               = "/bin/sh"
	ShellCmdline                              = "sh"
	PerlCmdline                               = "perl"
	MakeCmdline                               = "make"
	Pwsh                                      = "pwsh"
	Cmd                                       = "cmd"
	HypenC                                    = "-c"
	Cd                                        = "cd"
	Pwd                                       = "pwd"
	BashDefaultPath                           = "/bin/bash"
	BashCommandline                           = "bash"
	NonInteractiveFlag                        = "-c"
	NonInteractiveCmdFlag                     = "/c"
	NonInteractivePerlFlag                    = "-e"
	ChmodCommand                              = "chmod"
	RecursiveCommandFlag                      = "-R"
	VersionCommandForCmd                      = "ver.exe"
	CompareEqual                              = 0
	CompareLess                               = -1
	CompareGreater                            = 1
	NilAngelBracket                           = "<nil>"
	CommaRawValueColonSpace                   = ", value: "
	IndexColonSpace                           = "index: "
	CommaIndexColonSpace                      = ", index: "
	N0String                                  = "0" // N refers to number
	N1String                                  = "1"
	N2String                                  = "2"
	N3String                                  = "3"
	N4String                                  = "4"
	N5String                                  = "5"
	N6String                                  = "6"
	N7String                                  = "7"
	N8String                                  = "8"
	N9String                                  = "9"
	N10String                                 = "10"
	KeyValuuePariSimpleFormat                 = "{ Key (Type - %T): %v} - { Value (Type - %T) : %v  }"
	MaxUint                                   = ^uint(0) // https://stackoverflow.com/a/6878625
	MinUint                                   = 0
	MaxInt                                    = int(MaxUint >> 1) // https://stackoverflow.com/a/6878625, 64 bit 9223372036854775807, 32bit, 2147483647
	MinInt                                    = -MaxInt - 1
	NewLineUnixChar                   byte    = '\n'
	NewLineUnixRune                   rune    = '\n'
	DefaultRangesJoiner                       = ", "
	DoubleQuotationStartEnd                   = `""`
	DoubleQuotation                           = `"`
	SingleQuotationStartEnd                   = `''`
	SingleQuotation                           = `'`
	CodeQuotation                             = "`"
	CodeQuotationStartEnd                     = "``"
	SpaceWithColon                            = " : "
	SprintFormatNumberWithColon               = "%d:%d"
	SprintFormatAnyValueWithColon             = "%v:%v"
	SprintFormatAnyValueWithComma             = "%v,%v"
	SprintFormatAnyValueWithPipe              = "%v|%v"
	SprintFormatAnyNameValueWithColon         = "%#v:%#v"
	SprintFormatAnyNameValueWithPipe          = "%#v|%#v"
	SprintFormatNumberWithHyphen              = "%d-%d"
	SprintFormatNumberWithPipe                = "%d|%d"
	CurrentDirDot                             = Dot
)