saver

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TarAndGetDirectoryStructure

func TarAndGetDirectoryStructure(
	src string, writers ...io.Writer) ([]string, error)

TarAndGetDirectoryStructure is copied from https://medium.com/@skdomino/taring-untaring-files-in-go-6b07cf56bc07.

Types

type Interface

type Interface interface {
	Save(path string) (*model.Model, error)
}

Interface saves the model from the path to the memory.

func New

func New() Interface

New creates a new Saver.

type Saver

type Saver struct {
	Parser parser.Parser
}

Saver is the implementation.

func (Saver) Save

func (d Saver) Save(path string) (*model.Model, error)

Save saves the model from the path to the memory.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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