file

package
Version: v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash added in v0.1.3

func Hash(name string) (string, error)

func IsDir

func IsDir(name string) bool

IsDir the given is a directory or not

func IsExists

func IsExists(name string) bool

IsExists the given file is exist

func Read

func Read(filePath string) string

Read read a file content form filepath

func Write

func Write(content, dst string)

Write write a file by given content

func WriteByTemp added in v0.1.3

func WriteByTemp(title, content, fileName string, data interface{})

WriteByTemp write a file by given template

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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