Documentation
¶
Index ¶
Constants ¶
View Source
const ( FileExtAsbx = ".asbx" FileExtAsb = ".asb" )
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
func Diff[S ~[]E, E comparable](s1, s2 S) S
Diff finds the difference between two slices. Returns elements from s1 that s2 don't contain.
func GetFileNumber ¶
GetFileNumber returns file number from name.
func MergeChannels ¶
func MergeChannels[T any](channels []<-chan T) <-chan T
func SortBackupFiles ¶
SortBackupFiles sort files for better restore performance.
Types ¶
type BytesWriteCloser ¶
type BytesWriteCloser struct {
// contains filtered or unexported fields
}
BytesWriteCloser implements io.WriteCloser for bytes.Buffer
func NewBytesWriteCloser ¶
func NewBytesWriteCloser(p []byte) *BytesWriteCloser
NewBytesWriteCloser returns io.WriteCloser for []bytes
func (*BytesWriteCloser) Buffer ¶
func (w *BytesWriteCloser) Buffer() *bytes.Buffer
Buffer returns buffer with data.
func (*BytesWriteCloser) Close ¶
func (w *BytesWriteCloser) Close() error
Close implements .Close() method for io.WriterCloser
Click to show internal directories.
Click to hide internal directories.