Documentation ¶
Index ¶
- 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 Unix2DosWriter(w io.Writer) io.WriteCloser
- type StringSet
- 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 StringSet ¶
type StringSet map[string]struct{}
func NewStringSet ¶
func NewStringSet() StringSet
type SuffixBuffer ¶
type SuffixBuffer struct {
// contains filtered or unexported fields
}
func NewSuffixBuffer ¶
func NewSuffixBuffer(size int) *SuffixBuffer
func (*SuffixBuffer) Bytes ¶
func (s *SuffixBuffer) Bytes() []byte
func (*SuffixBuffer) String ¶
func (s *SuffixBuffer) String() string
func (*SuffixBuffer) Truncated ¶
func (s *SuffixBuffer) Truncated() bool
Click to show internal directories.
Click to hide internal directories.