Documentation ¶
Index ¶
- func CloseLogErrZap(closer io.Closer, logger *zap.Logger)
- func DistinctStringSlice(s []string) []string
- func Dos2UnixWriter(w io.Writer) io.WriteCloser
- func InStringSlice(slice []string, s string) bool
- func IsDir(path string) bool
- func IsFile(path string) bool
- func IsPathExist(path string) bool
- func JoinStringAny(sep string, a ...fmt.Stringer) string
- func MaxInt(a, b int) int
- func MinInt(a, b int) int
- func ReadFileLimited(p string, maxRead int64) ([]byte, error)
- func Reverse[S ~[]E, E any](s S)
- func Unix2DosWriter(w io.Writer) io.WriteCloser
- func UseLogger(ctx context.Context) *zap.Logger
- func WithLogger(ctx context.Context, logger *zap.Logger) context.Context
- type LogPipe
- type SuffixBuffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DistinctStringSlice ¶
func Dos2UnixWriter ¶
func Dos2UnixWriter(w io.Writer) io.WriteCloser
func InStringSlice ¶
func IsPathExist ¶
func Unix2DosWriter ¶
func Unix2DosWriter(w io.Writer) io.WriteCloser
Types ¶
type SuffixBuffer ¶
type SuffixBuffer struct {
// contains filtered or unexported fields
}
func MkSuffixBuffer ¶ added in v1.7.11
func MkSuffixBuffer(capacity int) *SuffixBuffer
func (*SuffixBuffer) Bytes ¶
func (r *SuffixBuffer) Bytes() (rs []byte)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.