Documentation ¶
Index ¶
- func CompareJSON(j1, j2 string) bool
- func FormatPkixSubject(s *pkix.Name) string
- func GetEnvBool(envVariable string, defaultValue ...bool) bool
- func GetFreeTcpPort(preferredPort int) int
- func IsTruthyEnv(envName string) bool
- func MinInt(a, b int) int
- func SendHttpRequest(method, url, payload string, headers ...[]string) (int, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareJSON ¶
func FormatPkixSubject ¶
FormatPkixSubject returns a string representing x509 cert subject/issuer
func GetEnvBool ¶
GetEnvBool returns value of the environment variable if it exists, or defaultValue if not
func GetFreeTcpPort ¶
func IsTruthyEnv ¶
IsTruthyEnv returns true for any value not "false", "0", "no..."
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.