filesystem

package
v0.0.0-...-46d7ffa Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadBinary

func ReadBinary(filePath string, readTo interface{}) error

readTo need to be passed as pointer, foe example:

var vnodes []partitioner.VNode
err := filesystem.ReadBinary("vnodes", &vnodes)

func SimpleBinaryDecode

func SimpleBinaryDecode(content []byte, writeTo interface{}) error

func SimpleBinaryEncode

func SimpleBinaryEncode(data interface{}) ([]byte, error)

func WriteBinary

func WriteBinary(filePath string, content interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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