extractor_file

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct{}

File is an extractor for file

Usage:

`loader:"file,path=./test.txt"`
`loader:"file,path=$FILE_PATH"`

func NewFile

func NewFile() *File

func (*File) Extract

func (r *File) Extract(args *iface.ExtractorReq) (string, error)

Extract impl file Extract

file Extractor accept one arg as filepath filepath support use $ENV_NAME as part of filepath

func (*File) Name

func (r *File) Name() string

Jump to

Keyboard shortcuts

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