Documentation
¶
Index ¶
- Constants
- Variables
- func ArraysCopy[T any](items ...[]T) []T
- func CaseInsensitiveSet(m *map[string]any, key string, value any)
- func CryptoGetRandomBytes(size int) []byte
- func DetectLocalNetwork(requestAddr string) (bool, error)
- func EnvAwareFilenames(env string, filename string) []string
- func EnvGetCurrent() string
- func EnvOverrideVariables(m *map[string]any, keyCaseInsensitive bool)
- func GenerateSelfSignedCert() (tls.Certificate, error)
- func IdsGenerateUnique() string
- func PathsSplit(filename string) (string, string, string)
- func SerializeSlogAttrs(attrs []slog.Attr) string
- func SplitHostPort(addr string) (string, string, error)
- func StringsTrimLeadingSpace(src string) string
- func StringsTrimLeadingSpaceFromBytes(src []byte) []byte
- func StringsTrimTrailingSpace(src string) string
- func StringsTrimTrailingSpaceFromBytes(src []byte) []byte
- type NullString
Constants ¶
View Source
const ( SelfSignedCertOrganization = "Development" SelfSignedCertValidity = 365 * 24 * time.Hour SelfSignedKeyLength = 2048 )
Variables ¶
View Source
var ErrInvalidIPAddress = errors.New("invalid IP address")
Functions ¶
func ArraysCopy ¶
func ArraysCopy[T any](items ...[]T) []T
func CaseInsensitiveSet ¶ added in v0.6.26
func CryptoGetRandomBytes ¶
func DetectLocalNetwork ¶ added in v0.6.29
func EnvAwareFilenames ¶
func EnvGetCurrent ¶
func EnvGetCurrent() string
func EnvOverrideVariables ¶
func GenerateSelfSignedCert ¶ added in v0.6.6
func GenerateSelfSignedCert() (tls.Certificate, error)
func IdsGenerateUnique ¶
func IdsGenerateUnique() string
func SerializeSlogAttrs ¶
func StringsTrimLeadingSpace ¶
Types ¶
type NullString ¶
func (NullString) MarshalJSON ¶
func (ns NullString) MarshalJSON() ([]byte, error)
func (*NullString) Scan ¶
func (ns *NullString) Scan(value any) error
func (*NullString) UnmarshalJSON ¶
func (ns *NullString) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.