filehelper

package
v0.0.0-...-acf58c8 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFileFromBytes

func ReadFileFromBytes(fpath string, content []byte) (*dbrpc.FileInfo, []byte, error)

func ReadFileFromPath

func ReadFileFromPath(fpath string) (*dbrpc.FileInfo, []byte, error)

ReadFileFromPath takes a filepath as an input i.e. /Users/blah/somefile.jpg and it will return its mimetype, abspath in FileInfo its content as slice of utf8 bytes and an error if there's any

Types

This section is empty.

Source Files

  • filehelper.go

Jump to

Keyboard shortcuts

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