Documentation ¶
Overview ¶
Package helpers contains some basic helper functions for stark.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDir ¶
CheckDir is a function to check that a directory exists and tries to make it if it doesn't.
func CheckFileExists ¶
CheckFileExists checks a returns true if a file exists and is not a directory.
func CheckTimeStamp ¶
func CheckTimeStamp(old, new *timestamppb.Timestamp) bool
CheckTimeStamp will return true if the new protobuf timestamp is more recent than the old one.
func IsPublicIPv4 ¶
IsPublicIPv4 returns true if the given ip is not reserved for a private address. of course, this only implies that it _might_ be public https://stackoverflow.com/a/41670589
func StdinAvailable ¶
func StdinAvailable() bool
StdinAvailable checks if STDIN is available for reading.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.