Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/daviddengcn/go-villa
/ functions
Functions
264 in github.com/daviddengcn/go-villa
⨍
Functions
264
◇
Types & classes
34
↓ 35 callers
Method
Equals
Equals returns true if a given slice has the same contents with the slice
slice.go:133
↓ 27 callers
Function
__
(name string, t *testing.T)
slice_test.go:22
↓ 27 callers
Function
o_
(t *testing.T)
slice_test.go:12
↓ 24 callers
Method
Sort
Sort calls the build-in sort.Sort to sort data in the slice.
cmp.go:87
↓ 15 callers
Method
Add
Add appends the specified element to the end of this slice.
slice.go:42
↓ 10 callers
Method
BinarySearch
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 callers
Method
Add
Add appends the specified element to the end of this slice.
intslice.go:31
↓ 9 callers
Method
Insert
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 callers
Method
Add
Add appends the specified element to the end of this slice.
complexslice.go:11
↓ 8 callers
Method
Add
Add appends the specified element to the end of this slice.
floatslice.go:11
↓ 8 callers
Method
Cols
Cols returns the number of columns
intmat.go:41
↓ 8 callers
Method
Fill
Fill sets the elements between from, inclusive, and to, exclusive, to a speicified value.
slice.go:120
↓ 8 callers
Method
Rows
Rows returns the number of rows
intmat.go:50
↓ 7 callers
Method
Add
Add appends string presentation of the specified elements to the end of this slice.
strslice.go:44
↓ 7 callers
Method
Len
The Len method in sort.Interface.
pq.go:46
↓ 7 callers
Method
WriteString
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 callers
Method
In
In returns true if the specified element is in the set, false otherwise
strset.go:42
↓ 6 callers
Function
LinePos
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 callers
Method
ReadRune
ReadRune implements io.RuneReader interface.
byteslice.go:129
↓ 5 callers
Method
InsertSlice
InsertSlice inserts string presentation of elements of a slice at the specified position.
strslice.go:56
↓ 5 callers
Method
Merge
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 callers
Function
NewStrSet
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 callers
Method
RemoveRange
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 callers
Method
Equals
Equals checks whether the set has same elements with another set.
strset.go:59
↓ 4 callers
Method
Len
()
heap/heap_test.go:59
↓ 4 callers
Method
Read
Read implements io.Reader interface. After some bytes are read, the slice shrinks.
byteslice.go:30
↓ 4 callers
Method
Swap
The Swap method in sort.Interface.
slice.go:84
↓ 4 callers
Method
Swap
(i, j int)
heap/heap_test.go:55
↓ 3 callers
Method
Abs
* 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 callers
Method
Clear
Clear sets the slice to an zero-length slice.
slice.go:127
↓ 3 callers
Method
Deepest
* Deepest returns the deepest non-NestedError error, which is the original cause error. */
misc.go:47
↓ 3 callers
Method
Elements
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 callers
Method
Insert
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 callers
Method
InsertSlice
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 callers
Method
Less
(i, j int)
heap/heap_test.go:63
↓ 3 callers
Function
NewIntMatrix
NewIntMatrix creates a new IntMatrix instance with specified number of rows and columns
intmat.go:17
↓ 3 callers
Method
Write
Write implements io.Writer interface Bytes are appended to the tail of the slice.
byteslice.go:68
↓ 3 callers
Function
down
(h sort.Interface, i, n int)
heap/heap.go:92
↓ 2 callers
Method
Clear
Clear sets the slice to an zero-length slice.
strslice.go:127
↓ 2 callers
Method
Clear
Clear removes all of the elements from this slice.
intslice.go:78
↓ 2 callers
Method
Clone
Clone clones an IntMatrix
intmat.go:29
↓ 2 callers
Method
Close
Close implements io.Closer interface. It does nothing.
byteslice.go:92
↓ 2 callers
Method
Delete
Delete removes elements from the set
strset.go:29
↓ 2 callers
Method
Ext
Ext is a wrapper to filepath.Ext
path.go:119
↓ 2 callers
Method
Fill
Fill sets the elements between from, inclusive, and to, exclusive, to a speicified value.
strslice.go:120
↓ 2 callers
Method
Fill
Fill sets the elements between from, inclusive, and to, exclusive, to a speicified value.
intslice.go:71
↓ 2 callers
Method
Insert
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 callers
Method
Insert
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 callers
Method
Join
Join connect elems to the tail of path
path.go:25
↓ 2 callers
Function
NestErrorf
* NestErrorf returns nil if err == nil, otherwise it returns a *NestedError error with a formatted message */
misc.go:102
↓ 2 callers
Method
Pop
Pop retrieves and removes the head of this queue, or returns nil if this queue is empty.
intpq.go:75
↓ 2 callers
Method
Pop
Pop retrieves and removes the head of this queue, or returns nil if this queue is empty.
pq.go:71
↓ 2 callers
Method
Pop
()
heap/heap_test.go:13
↓ 2 callers
Method
Pop
()
heap/heap_test.go:67
↓ 2 callers
Function
PopToLast
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 callers
Function
PushLast
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 callers
Method
Put
Put adds elements to the set. The set can be nil
strset.go:17
↓ 2 callers
Method
Remove
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 callers
Method
Remove
Remove removes the element at the specified position in this slice.
complexslice.go:34
↓ 2 callers
Method
Remove
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 callers
Method
Remove
Remove removes the element at the specified position in this slice.
floatslice.go:34
↓ 2 callers
Method
Remove
Remove removes the element at the specified position in this slice.
intslice.go:54
↓ 2 callers
Method
RemoveRange
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 callers
Method
RemoveRange
RemoveRange removes all of the elements whose index is between from, inclusive, and to, exclusive, from this slice.
intslice.go:61
↓ 2 callers
Function
SortF
Deprecated. Use sortp.SortF in "github.com/golangplus/sort" instead.
sort.go:8
↓ 2 callers
Method
Stat
Stat is a wrappter to os.Stat
path.go:276
↓ 2 callers
Method
String
String returns the string presentation of the set
strset.go:74
↓ 2 callers
Method
WriteItoa
WriteItoa converts i into text of the specified base and write to s.
byteslice.go:167
↓ 2 callers
Method
WriteRune
WriteRune writes a single Unicode code point, returning the number of bytes written and any error.
byteslice.go:143
↓ 2 callers
Method
intDown
(i, n int)
intpq.go:50
↓ 2 callers
Method
intUp
(j int)
intpq.go:39
↓ 2 callers
Function
up
(h sort.Interface, j int)
heap/heap.go:81
↓ 1 callers
Function
AssertStrSetEquals
* AssertStrSetEquals shows error message when act and exp are equal string sets. */
misc_test.go:23
↓ 1 callers
Method
Base
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 callers
Method
Clear
Clear removes all of the elements from this slice.
complexslice.go:58
↓ 1 callers
Method
Clear
Clear removes all of the elements from this slice.
floatslice.go:58
↓ 1 callers
Method
DiffSlicePair
DiffSlicePair compares two sorted slices, returns the difference of each relative to the other.
cmp.go:161
↓ 1 callers
Method
Do
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 callers
Method
Error
Error implements error interface
misc.go:56
↓ 1 callers
Method
Fill
Fill sets the elements between from, inclusive, and to, exclusive, to a speicified value.
complexslice.go:46
↓ 1 callers
Method
Fill
Fill sets the elements between from, inclusive, and to, exclusive, to a speicified value.
floatslice.go:51
↓ 1 callers
Method
Fill
Fill sets all elements of the matrix to a specified value
intmat.go:100
↓ 1 callers
Method
Get
Get fetches the object from the box atomically
sync.go:47
↓ 1 callers
Method
Insert
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 callers
Method
Len
Len returns the number of elements in this queue.
intpq.go:107
↓ 1 callers
Method
Len
Len returns the number of elements in this queue.
pq.go:90
↓ 1 callers
Function
MapKeyAsStrings
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 callers
Function
NewIntPriorityQueue
NewIntPriorityQueue creates a IntPriorityQueue instance with a specified campare function.
intpq.go:30
↓ 1 callers
Function
NewIntPriorityQueueCap
NewIntPriorityQueueCap creates a IntPriorityQueue instance with a specified compare function and a capacity
intpq.go:35
↓ 1 callers
Function
NewPriorityQueue
NewPriorityQueue creates a PriorityQueue instance with a specified compare function.
pq.go:56
↓ 1 callers
Function
NewPriorityQueueCap
NewPriorityQueue creates a PriorityQueue instance with a specified compare function and a capacity
pq.go:61
↓ 1 callers
Method
Open
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 callers
Method
Peek
Peek retrieves the head of this queue, or returns 0 if this queue is empty.
intpq.go:85
↓ 1 callers
Method
Peek
Peek retrieves the head of this queue, or returns nil if this queue is empty.
pq.go:76
↓ 1 callers
Method
Pop
The Pop method in heap.Interface.
pq.go:41
↓ 1 callers
Method
PrettyString
PrettyString returns a pretty text form of the matrix. This function is mainly for debugging.
intmat.go:56
↓ 1 callers
Method
Push
Push inserts the specified element into this priority queue.
intpq.go:69
↓ 1 callers
Method
Push
The Push method in heap.Interface.
pq.go:36
↓ 1 callers
Method
Push
Push inserts the specified element into this priority queue.
pq.go:66
↓ 1 callers
Method
Push
(x int)
heap/heap_test.go:21
next →
1–100 of 264, ranked by callers