filehelper

package
v0.0.0-...-0a1b35b Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

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