package
1.8.0
Repository: https://github.com/jolheiser/gitea.git
Documentation: pkg.go.dev

# Functions

EnsureAbsolutePath ensure that a path is absolute, making it relative to absoluteBase if necessary.
ExistsInSlice returns true if string exists in slice.
GetDirectorySize returns the dumb disk consumption for a given path.
IsEmptyString checks if the provided string is empty.
IsEqualSlice returns true if slices are equal.
IsExternalURL checks if rawURL points to an external URL like http://example.com.
IsSliceInt64Eq returns if the two slice has the same elements but different sequences.
IsStringInSlice sequential searches if string exists in slice.
Max max of two ints.
Min min of two ints.
NormalizeEOL will convert Windows (CRLF) and Mac (CR) EOLs to UNIX (LF).
OptionalBoolOf get the corresponding OptionalBool of a bool.
PathEscapeSegments escapes segments of a path while not escaping forward slash.
SanitizeMessage sanitizes a message which may contains a sensitive URL.
SanitizeURLCredentials sanitizes a url, either removing user credentials or replacing them with a placeholder.
URLJoin joins url components, like path.Join, but preserving contents.
URLSanitizedError returns the sanitized version an error whose message may contain a sensitive URL.

# Constants

OptionalBoolFalse a "false" boolean value.
OptionalBoolNone a "null" boolean value.
OptionalBoolTrue a "true" boolean value.

# Type aliases

Int64Slice attaches the methods of Interface to []int64, sorting in increasing order.
OptionalBool a boolean that can be "null".