osx

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFor

func CreateFor[T any](filename string, f func(file *os.File) (T, error)) (t T, err error)

CreateFor Create file via call os.Create and then call handler f and finally close the file

func OpenFor

func OpenFor[T any](filename string, f func(file *os.File) (T, error)) (t T, err error)

OpenFor Open file via call os.Open and then call handler f and finally close the file

Types

This section is empty.

Jump to

Keyboard shortcuts

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