package nvdmirror import ( "github.com/rs/zerolog" "github.com/rs/zerolog/log" "os" ) // Get file size, in bytes. func getFileSize(path string) (uint64, error) { // verify that full path exists if st, err := os.Stat(path); err != nil { return 0, err } else { return uint64(st.Size()), err } } // log array of strings func logArray(key string, strs []string) { // populate array a := zerolog.Arr() for _, v := range(strs) { a.Str(v) } // log array log.Info().Array(key, a).Send() }