Documentation
¶
Index ¶
- func Append(path string, content ...interface{}) (int, error)
- func Appendf(path string, format string, content ...interface{}) (int, error)
- func Appendln(path string, content ...interface{}) (int, error)
- func Copy(dest string, src ...string) error
- func Exist(path string) bool
- func Read(path string) (string, error)
- func Write(path string, content ...interface{}) (int, error)
- func WriteByte(path string, content []byte) (int, error)
- func WriteByteTemp(pattern string, content []byte) (string, int, error)
- func WriteTemp(pattern string, content ...interface{}) (string, int, error)
- func Writef(path string, format string, content ...interface{}) (int, error)
- func WritefTemp(pattern string, format string, content ...interface{}) (string, int, error)
- func Writeln(path string, content ...interface{}) (int, error)
- func WritelnTemp(pattern string, content ...interface{}) (path string, len int, err error)
- type Buffer
- func (buffer *Buffer) Commit() (int, error)
- func (buffer *Buffer) Set(content ...interface{}) (int, error)
- func (buffer *Buffer) Setf(format string, content ...interface{}) (int, error)
- func (buffer *Buffer) Setln(content ...interface{}) (int, error)
- func (buffer *Buffer) WriteString(content ...interface{}) (int, error)
- func (buffer *Buffer) WriteStringf(format string, content ...interface{}) (int, error)
- func (buffer *Buffer) WriteStringln(content ...interface{}) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteByteTemp ¶
WriteByteTemp write byte to temp file
func WritefTemp ¶
WritefTemp write to temp file with format
Types ¶
type Buffer ¶
Buffer can store contents to a buffer and write them to path at one time
func (*Buffer) WriteString ¶
WriteString appends the contents to buffer
func (*Buffer) WriteStringf ¶
WriteStringf appends the contents to buffer with format
func (*Buffer) WriteStringln ¶
WriteStringln appends the contents to buffer with newline
Click to show internal directories.
Click to hide internal directories.