fileutil

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package fileutil implements utility functions for working with files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadStringFromFile

func ReadStringFromFile(filePath string) (string, error)

ReadStringFromFile reads file from specified path and returns its string content. If iotuil.ReadFile occurs any error, this will be returned.

func WriteStringToFile

func WriteStringToFile(filePath string, str string) error

WriteStringToFile creates new file with specified path and writes string to it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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