file

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package file provides an inject.Injector for file input. The tag value is used as the filename. Values of type *os.File will be set normally. Other values will be depending on the file type. File type is derived from the file extension, or optionally overridden by a tag option. Supported types include: txt, json, xml, gob

Index

Constants

This section is empty.

Variables

Injector is an inject.Injector for file input.

Functions

func Inject

func Inject(value reflect.Value, fileName string) (bool, error)

Inject opens opens a file and sets the value via literal.Injector.

Types

This section is empty.

Jump to

Keyboard shortcuts

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