Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Timestamp please start the timer function before you use this value // please load the value with atomic `atomic.LoadUint32(&utils.Timestamp)` Timestamp uint32 )
Functions ¶
func ReadFile ¶
func ReadFile(path string, fs http.FileSystem) ([]byte, error)
#nosec G304 ReadFile returns the raw content of a file
func StartTimeStampUpdater ¶
func StartTimeStampUpdater()
StartTimeStampUpdater starts a concurrent function which stores the timestamp to an atomic value per second, which is much better for performance than determining it at runtime each time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.