file

package
v2.1.41 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Interval = "\t"

interval.间隔

Variables

This section is empty.

Functions

func CamelToUnderline

func CamelToUnderline(s string) string

CamelToUnderline 驼峰单词转下划线单词

func CheckFileIsExist added in v2.0.3

func CheckFileIsExist(filename string) bool

CheckFileIsExist 检查文件是否存在

func MkdirIfNotExist

func MkdirIfNotExist(dir string) error

MkdirIfNotExist makes directories if the input path is not exists

func UnderlineToCamel

func UnderlineToCamel(name string) string

UnderlineToCamel 下划线写法转为驼峰写法

Types

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter() *Writer

func (*Writer) Add

func (w *Writer) Add(s []byte)

func (*Writer) AddStrs

func (w *Writer) AddStrs(s ...string)

func (*Writer) Bytes

func (w *Writer) Bytes() []byte

func (*Writer) Clear

func (w *Writer) Clear()

func (*Writer) ForceWriteToFile

func (w *Writer) ForceWriteToFile(path string)

func (*Writer) WriteToFile

func (w *Writer) WriteToFile(path string)

Jump to

Keyboard shortcuts

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