Documentation
¶
Index ¶
- Constants
- type File
- type GetMapper
- type Line
- type MapFiles
- func (m *MapFiles) Delete(key any)
- func (m *MapFiles) Get(key any) (value any, ok bool)
- func (m *MapFiles) GetStruct() []*File
- func (m *MapFiles) Len() int
- func (m *MapFiles) Pop(key any) (value any, loaded bool)
- func (m *MapFiles) Put(key, value any)
- func (m *MapFiles) Range(f func(key, value any) bool)
- type StringFinder
- type SyncMap
Constants ¶
View Source
const GouroutinesLimit = 512
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapFiles ¶
type MapFiles struct {
// contains filtered or unexported fields
}
func MakeMapFiles ¶
func MakeMapFiles() *MapFiles
type StringFinder ¶
type StringFinder struct {
// contains filtered or unexported fields
}
func MakeStringFinder ¶
func MakeStringFinder(pattern string) *StringFinder
func (*StringFinder) Search ¶
func (f *StringFinder) Search(path string, onlyFiles bool) (*MapFiles, error)
func (*StringFinder) SetGouroutinesLimit ¶
func (f *StringFinder) SetGouroutinesLimit(limit int)
type SyncMap ¶
type SyncMap interface { Delete(key any) Get(key any) (value any, ok bool) Pop(key any) (value any, loaded bool) Put(key, value any) Len() int Range(f func(key, value any) bool) }
func MakeLinesWithText ¶
func MakeLinesWithText() SyncMap
func MakeOnlyFiles ¶
func MakeOnlyFiles() SyncMap
Click to show internal directories.
Click to hide internal directories.