gika

package module
v0.0.0-...-72c091b Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 4 Imported by: 0

README

gika

top layer of reading files

Supported formats

  • text - text/plain

  • zip - application/zip

  • tar - application/x-tar

  • rar - application/vnd.rar

  • gz - application/gzip

  • bz2 - application/x-bzip2

  • 7z - application/x-7z-compressed

  • xz - application/x-xz

  • zstd - application/zstd

  • Z - application/x-compress

  • iso - application/x-iso9660-image

  • lz - application/x-lzip

  • a - application/x-unix-archive

  • cab - application/vnd.ms-cab-compressed

  • docx - application/vnd.openxmlformats-officedocument.wordprocessingml.document

  • xlsx - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

  • pdf - application/pdf

  • msi - application/x-msi

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gika

type Gika struct {
	// contains filtered or unexported fields
}

func New

func New(contentHandler types.IContentHandler) *Gika

func (*Gika) WithPath

func (g *Gika) WithPath(path string) (*Handle, error)

WithPath sets the path of the file to be processed

func (*Gika) WithReader

func (g *Gika) WithReader(size int64, reader io.ReadSeekCloser) (*Handle, error)

WithReader sets the reader of the file to be processed

type Handle

type Handle struct {
	// contains filtered or unexported fields
}

func (*Handle) Close

func (g *Handle) Close() error

func (*Handle) Read

func (g *Handle) Read() (types.Entries, error)

Directories

Path Synopsis
cmd
doc
pkg

Jump to

Keyboard shortcuts

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