osext

package
v2.0.0-...-8dcd6a7 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2015 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package osext contains extensions to the base Go os package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustCreate

func MustCreate(name string) *os.File

MustCreate creates the named file mode 0666 (before umask), truncating it if it already exists. If successful, methods on the returned File can be used for I/O; the associated file descriptor has mode O_RDWR. If there is an error, a panic will occur.

func MustOpen

func MustOpen(name string) *os.File

MustOpen opens the named file for reading. If successful, methods on the returned file can be used for reading; the associated file descriptor has mode O_RDONLY. If there is an error, a panic will occur.

Types

This section is empty.

Jump to

Keyboard shortcuts

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