mediautil

package
v0.0.0-...-ad46cc6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: MPL-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileMIME

func FileMIME(ctx context.Context, file gio.Filer) string

FileMIME tries to get the MIME type of the given GIO file.

func FileReaderMIME

func FileReaderMIME(ctx context.Context, f *gio.FileInputStream) string

FileReaderMIME tries to get the MIME type of the given GIO file input stream.

func FileSize

func FileSize(ctx context.Context, file gio.Filer) int64

FileSize gets the size of the given gio.Filer.

func MIME

func MIME(f io.ReadSeeker) string

MIME tries to get the MIME type off a seekable reader. The reader is seeked back to before bytes were read.

func MIMEBuffered

func MIMEBuffered(r io.Reader) (newReader io.Reader, mime string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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