MCPcopy Create free account

hub / github.com/daviddengcn/go-villa / functions

Functions264 in github.com/daviddengcn/go-villa

↓ 35 callersMethodEquals
Equals returns true if a given slice has the same contents with the slice
slice.go:133
↓ 27 callersFunction__
(name string, t *testing.T)
slice_test.go:22
↓ 27 callersFunctiono_
(t *testing.T)
slice_test.go:12
↓ 24 callersMethodSort
Sort calls the build-in sort.Sort to sort data in the slice.
cmp.go:87
↓ 15 callersMethodAdd
Add appends the specified element to the end of this slice.
slice.go:42
↓ 10 callersMethodBinarySearch
BinarySearch searchs a specified element e in a *sorted* list with binary search algorithm. If the list values are not sorted, the return values are u
cmp.go:53
↓ 9 callersMethodAdd
Add appends the specified element to the end of this slice.
intslice.go:31
↓ 9 callersMethodInsert
Insert inserts specified elements at the specified position. NOTE: the insertion algorithm is much better than the slice-trick in go community wiki
slice.go:49
↓ 8 callersMethodAdd
Add appends the specified element to the end of this slice.
complexslice.go:11
↓ 8 callersMethodAdd
Add appends the specified element to the end of this slice.
floatslice.go:11
↓ 8 callersMethodCols
Cols returns the number of columns
intmat.go:41
↓ 8 callersMethodFill
Fill sets the elements between from, inclusive, and to, exclusive, to a speicified value.
slice.go:120
↓ 8 callersMethodRows
Rows returns the number of rows
intmat.go:50
↓ 7 callersMethodAdd
Add appends string presentation of the specified elements to the end of this slice.
strslice.go:44
↓ 7 callersMethodLen
The Len method in sort.Interface.
pq.go:46
↓ 7 callersMethodWriteString
WriteString appends the contents of str to the slice, growing the slice as needed. The return value n is the length of str; err is always nil.
byteslice.go:161
↓ 6 callersMethodIn
In returns true if the specified element is in the set, false otherwise
strset.go:42
↓ 6 callersFunctionLinePos
LinePos returns a string of format "filename:pos" of a position in the source. For skip == 0, it returns the position of the caller (the line call Lin
log.go:12
↓ 6 callersMethodReadRune
ReadRune implements io.RuneReader interface.
byteslice.go:129
↓ 5 callersMethodInsertSlice
InsertSlice inserts string presentation of elements of a slice at the specified position.
strslice.go:56
↓ 5 callersMethodMerge
Merge merges the current *sorted* elements with another *sorted* slice of elements. All elements should be sorted by the same comparator.
cmp.go:29
↓ 5 callersFunctionNewStrSet
NewStrSet creates a string set with specified elements. You need to use this function only when you want to create a StrSet with intial elements. Diff
strset.go:12
↓ 5 callersMethodRemoveRange
RemoveRange removes all of the elements whose index is between from, inclusive, and to, exclusive, from this slice. The holes in the original slice ar
slice.go:100
↓ 4 callersMethodEquals
Equals checks whether the set has same elements with another set.
strset.go:59
↓ 4 callersMethodLen
()
heap/heap_test.go:59
↓ 4 callersMethodRead
Read implements io.Reader interface. After some bytes are read, the slice shrinks.
byteslice.go:30
↓ 4 callersMethodSwap
The Swap method in sort.Interface.
slice.go:84
↓ 4 callersMethodSwap
(i, j int)
heap/heap_test.go:55
↓ 3 callersMethodAbs
* wrappers of path/filepath package */ Abs is a wrapper to filepath.Abs It returns an absolute representation of path. If the path is not absolute it
path.go:81
↓ 3 callersMethodClear
Clear sets the slice to an zero-length slice.
slice.go:127
↓ 3 callersMethodDeepest
* Deepest returns the deepest non-NestedError error, which is the original cause error. */
misc.go:47
↓ 3 callersMethodElements
Elements returns all elements in the set as a string slice. NOTE the order of elements may change even if the set doesnot change.
strset.go:49
↓ 3 callersMethodInsert
Insert inserts the specified element at the specified position. NOTE: the insertion algorithm is much better than the slice-trick in go community wiki
intslice.go:38
↓ 3 callersMethodInsertSlice
InsertSlice inserts the elements of a slice at the specified position. This method is useful when some elements in a slice *NOT* of type []interface{}
slice.go:61
↓ 3 callersMethodLess
(i, j int)
heap/heap_test.go:63
↓ 3 callersFunctionNewIntMatrix
NewIntMatrix creates a new IntMatrix instance with specified number of rows and columns
intmat.go:17
↓ 3 callersMethodWrite
Write implements io.Writer interface Bytes are appended to the tail of the slice.
byteslice.go:68
↓ 3 callersFunctiondown
(h sort.Interface, i, n int)
heap/heap.go:92
↓ 2 callersMethodClear
Clear sets the slice to an zero-length slice.
strslice.go:127
↓ 2 callersMethodClear
Clear removes all of the elements from this slice.
intslice.go:78
↓ 2 callersMethodClone
Clone clones an IntMatrix
intmat.go:29
↓ 2 callersMethodClose
Close implements io.Closer interface. It does nothing.
byteslice.go:92
↓ 2 callersMethodDelete
Delete removes elements from the set
strset.go:29
↓ 2 callersMethodExt
Ext is a wrapper to filepath.Ext
path.go:119
↓ 2 callersMethodFill
Fill sets the elements between from, inclusive, and to, exclusive, to a speicified value.
strslice.go:120
↓ 2 callersMethodFill
Fill sets the elements between from, inclusive, and to, exclusive, to a speicified value.
intslice.go:71
↓ 2 callersMethodInsert
Insert inserts string presentation of the specified elements at the specified position. NOTE: the insertion algorithm is much better than the slice-tr
strslice.go:51
↓ 2 callersMethodInsert
Insert inserts the specified element at the specified position. NOTE: the insertion algorithm is much better than the slice-trick in go community wiki
floatslice.go:18
↓ 2 callersMethodJoin
Join connect elems to the tail of path
path.go:25
↓ 2 callersFunctionNestErrorf
* NestErrorf returns nil if err == nil, otherwise it returns a *NestedError error with a formatted message */
misc.go:102
↓ 2 callersMethodPop
Pop retrieves and removes the head of this queue, or returns nil if this queue is empty.
intpq.go:75
↓ 2 callersMethodPop
Pop retrieves and removes the head of this queue, or returns nil if this queue is empty.
pq.go:71
↓ 2 callersMethodPop
()
heap/heap_test.go:13
↓ 2 callersMethodPop
()
heap/heap_test.go:67
↓ 2 callersFunctionPopToLast
Pop removes the minimum element (according to Less) from the heap and place it at the last element of the heap. The complexity is O(log(n)) where n =
heap/heap.go:60
↓ 2 callersFunctionPushLast
Push pushes the last element of the heap, which is considered not as the part of the heap, onto the heap. The complexity is O(log(n)) where n = h.Len(
heap/heap.go:49
↓ 2 callersMethodPut
Put adds elements to the set. The set can be nil
strset.go:17
↓ 2 callersMethodRemove
Remove removes the element at the specified position in this slice. The hole in the original slice is filled with a zero value.
strslice.go:90
↓ 2 callersMethodRemove
Remove removes the element at the specified position in this slice.
complexslice.go:34
↓ 2 callersMethodRemove
Remove removes the element at the specified position in this slice. The hole in the original slice is filled with a nil value.
slice.go:90
↓ 2 callersMethodRemove
Remove removes the element at the specified position in this slice.
floatslice.go:34
↓ 2 callersMethodRemove
Remove removes the element at the specified position in this slice.
intslice.go:54
↓ 2 callersMethodRemoveRange
RemoveRange removes all of the elements whose index is between from, inclusive, and to, exclusive, from this slice. The holes in the original slice ar
strslice.go:100
↓ 2 callersMethodRemoveRange
RemoveRange removes all of the elements whose index is between from, inclusive, and to, exclusive, from this slice.
intslice.go:61
↓ 2 callersFunctionSortF
Deprecated. Use sortp.SortF in "github.com/golangplus/sort" instead.
sort.go:8
↓ 2 callersMethodStat
Stat is a wrappter to os.Stat
path.go:276
↓ 2 callersMethodString
String returns the string presentation of the set
strset.go:74
↓ 2 callersMethodWriteItoa
WriteItoa converts i into text of the specified base and write to s.
byteslice.go:167
↓ 2 callersMethodWriteRune
WriteRune writes a single Unicode code point, returning the number of bytes written and any error.
byteslice.go:143
↓ 2 callersMethodintDown
(i, n int)
intpq.go:50
↓ 2 callersMethodintUp
(j int)
intpq.go:39
↓ 2 callersFunctionup
(h sort.Interface, j int)
heap/heap.go:81
↓ 1 callersFunctionAssertStrSetEquals
* AssertStrSetEquals shows error message when act and exp are equal string sets. */
misc_test.go:23
↓ 1 callersMethodBase
Base returns the last element of path. Trailing path separators are removed before extracting the last element. If the path is empty, Base returns "."
path.go:90
↓ 1 callersMethodClear
Clear removes all of the elements from this slice.
complexslice.go:58
↓ 1 callersMethodClear
Clear removes all of the elements from this slice.
floatslice.go:58
↓ 1 callersMethodDiffSlicePair
DiffSlicePair compares two sorted slices, returns the difference of each relative to the other.
cmp.go:161
↓ 1 callersMethodDo
Do calls the function f if and only if the method is being called for the first time with this receiver. In other words, given var once Once{F: f} if
sync.go:27
↓ 1 callersMethodError
Error implements error interface
misc.go:56
↓ 1 callersMethodFill
Fill sets the elements between from, inclusive, and to, exclusive, to a speicified value.
complexslice.go:46
↓ 1 callersMethodFill
Fill sets the elements between from, inclusive, and to, exclusive, to a speicified value.
floatslice.go:51
↓ 1 callersMethodFill
Fill sets all elements of the matrix to a specified value
intmat.go:100
↓ 1 callersMethodGet
Get fetches the object from the box atomically
sync.go:47
↓ 1 callersMethodInsert
Insert inserts the specified element at the specified position. NOTE: the insertion algorithm is much better than the slice-trick in go community wiki
complexslice.go:18
↓ 1 callersMethodLen
Len returns the number of elements in this queue.
intpq.go:107
↓ 1 callersMethodLen
Len returns the number of elements in this queue.
pq.go:90
↓ 1 callersFunctionMapKeyAsStrings
MapKeyAsStrings returns the keys of a map as a string slice. if m is not a map, it panics. Keys are extracted by reflection which doesn't guarentee th
map.go:11
↓ 1 callersFunctionNewIntPriorityQueue
NewIntPriorityQueue creates a IntPriorityQueue instance with a specified campare function.
intpq.go:30
↓ 1 callersFunctionNewIntPriorityQueueCap
NewIntPriorityQueueCap creates a IntPriorityQueue instance with a specified compare function and a capacity
intpq.go:35
↓ 1 callersFunctionNewPriorityQueue
NewPriorityQueue creates a PriorityQueue instance with a specified compare function.
pq.go:56
↓ 1 callersFunctionNewPriorityQueueCap
NewPriorityQueue creates a PriorityQueue instance with a specified compare function and a capacity
pq.go:61
↓ 1 callersMethodOpen
Open is a wrapper to os.Open. It opens the named file for reading. If successful, methods on the returned file can be used for reading; the associate
path.go:221
↓ 1 callersMethodPeek
Peek retrieves the head of this queue, or returns 0 if this queue is empty.
intpq.go:85
↓ 1 callersMethodPeek
Peek retrieves the head of this queue, or returns nil if this queue is empty.
pq.go:76
↓ 1 callersMethodPop
The Pop method in heap.Interface.
pq.go:41
↓ 1 callersMethodPrettyString
PrettyString returns a pretty text form of the matrix. This function is mainly for debugging.
intmat.go:56
↓ 1 callersMethodPush
Push inserts the specified element into this priority queue.
intpq.go:69
↓ 1 callersMethodPush
The Push method in heap.Interface.
pq.go:36
↓ 1 callersMethodPush
Push inserts the specified element into this priority queue.
pq.go:66
↓ 1 callersMethodPush
(x int)
heap/heap_test.go:21
next →1–100 of 264, ranked by callers