fileutil

package
v0.0.0-...-71ae8ad Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(file FileTemplate) error

Create creates a file from a FileTemplate

func CreateMultiple

func CreateMultiple(files []FileTemplate) error

CreateMultiple creates multiple files from a FileTemplate array

Types

type FileTemplate

type FileTemplate struct {
	Name string      // filename or path/filename
	Tmpl string      // go template in string format
	Data interface{} // data used for template generation
}

FileTemplate is the base from which a file gets created.

Jump to

Keyboard shortcuts

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