tempfile

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tempfile is based on ioutil.TempFile adding support for a file extension.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(dir, prefix, ext string) (f *os.File, err error)

New creates a new temp file using the same mechanism as ioutil.TempFile, but adds the supplied extension. E.g. ".yaml" Based on https://golang.org/src/io/ioutil/tempfile.go?s=1285:1342#L37

Types

This section is empty.

Jump to

Keyboard shortcuts

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