fileutils

package
v0.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package fileutils provides utility functions for commonmeta.

Index

Constants

This section is empty.

Variables

View Source
var Files embed.FS

Functions

func GetExtension added in v0.18.0

func GetExtension(filename string, ext string) (string, string, bool)

GetExtension extracts the file extension and checks if the output file should be zipped.

func ReadFile

func ReadFile(filename string) ([]byte, error)

func ReadZIPFile

func ReadZIPFile(filename string) ([]byte, error)

ReadZIPFile opens a zip archive for reading

func WriteFile

func WriteFile(filename string, output []byte) error

func WriteZIPFile

func WriteZIPFile(filename string, output []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL