safewriter

package module
Version: v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: BSD-3-Clause Imports: 6 Imported by: 1

README

safewriter

Safe File Writer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(cb func(w io.Writer) (n int, err error), path string, mode ...os.FileMode) (n int, err error)

func ModeOf

func ModeOf(pth string) (mode os.FileMode, err error)

Types

type Writer

type Writer struct {
	*os.File
	// contains filtered or unexported fields
}

func Open

func Open(path string, mode ...os.FileMode) (w *Writer, err error)

func (Writer) Close

func (this Writer) Close() (err error)

func (Writer) Path

func (this Writer) Path() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL