Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/siddontang/go
/ functions
Functions
607 in github.com/siddontang/go
⨍
Functions
607
◇
Types & classes
121
↓ 132 callers
Method
Fatal
log with fatal level
log/log.go:250
↓ 86 callers
Method
Errorf
log with error level
log/log.go:275
↓ 36 callers
Function
benchFile
(b *testing.B, n int, decode bool)
snappy/snappy_test.go:200
↓ 35 callers
Method
Error
()
tb/error.go:30
↓ 32 callers
Method
Unmarshal
Unmarshal deserializes raw into the out value. If the out value type is not compatible with raw, a *bson.TypeError is returned. See the Unmarshal fu
bson/bson.go:503
↓ 31 callers
Function
checkListPointers
(t *testing.T, l *List, es []*Element)
list2/list_test.go:16
↓ 30 callers
Method
Set
(n int)
log/log.go:38
↓ 30 callers
Method
addElemName
-------------------------------------------------------------------------- Marshaling of elements in a document.
bson/encode.go:233
↓ 29 callers
Method
Close
()
log/handler.go:10
↓ 28 callers
Function
wrapInDoc
Wrap up the document elements contained in data, prepending the int32 length of the data, and appending the '\x00' value closing the document.
bson/bson_test.go:53
↓ 24 callers
Method
Output
(callDepth int, level int, format string, v ...interface{})
log/log.go:156
↓ 23 callers
Method
Remove
(e *Element)
list2/list.go:114
↓ 23 callers
Method
WriteString
write utf-8 text message
websocket/conn.go:104
↓ 22 callers
Method
PushBack
(v interface{})
list2/list.go:188
↓ 22 callers
Method
String
String returns a hex string representation of the id. Example: ObjectIdHex("4d88e15b60f486e428412dc9").
bson/bson.go:251
↓ 21 callers
Method
Bytes
Bytes This function can get expensive for large buffers.
bytes2/chunked_writer.go:32
↓ 21 callers
Method
Len
()
ring/ring.go:35
↓ 20 callers
Function
corrupted
-------------------------------------------------------------------------- Some helper functions.
bson/decode.go:55
↓ 20 callers
Function
testMax
(t *testing.T, v1 interface{}, v2 interface{}, v interface{})
num/num_test.go:71
↓ 20 callers
Function
testMin
(t *testing.T, v1 interface{}, v2 interface{}, v interface{})
num/num_test.go:7
↓ 19 callers
Method
Set
Set sets a value in the cache.
cache/lru_cache.go:82
↓ 18 callers
Method
Write
(p []byte)
log/handler.go:9
↓ 17 callers
Method
addBytes
(v ...byte)
bson/encode.go:477
↓ 14 callers
Method
Front
()
list2/list.go:83
↓ 13 callers
Method
Fatalf
log with fatal level
log/log.go:280
↓ 13 callers
Method
Get
Get returns a value from the cache, and marks the entry as most recently used.
cache/lru_cache.go:69
↓ 13 callers
Method
Len
()
bytes2/chunked_writer.go:43
↓ 13 callers
Function
New
()
list2/list.go:43
↓ 13 callers
Function
NewLRUCache
NewLRUCache creates a new empty cache with the given capacity.
cache/lru_cache.go:59
↓ 12 callers
Function
checkList
(t *testing.T, l *List, es []interface{})
list2/list_test.go:162
↓ 11 callers
Method
Sleep
(d time.Duration)
time2/wheel.go:252
↓ 10 callers
Method
Cap
()
ring/ring.go:45
↓ 10 callers
Method
Stats
Stats returns a few stats on the cache.
cache/lru_cache.go:144
↓ 10 callers
Method
readElemTo
Attempt to decode an element from the document and put it into out. If the types are not compatible, the returned ok value will be false and out will
bson/decode.go:432
↓ 9 callers
Method
Get
()
ring/ring.go:114
↓ 9 callers
Method
Next
()
list2/list.go:16
↓ 8 callers
Method
Get
()
sync2/atomic.go:117
↓ 8 callers
Method
Size
Size returns how big this value is.
cache/lru_cache.go:42
↓ 8 callers
Method
addElem
(name string, v reflect.Value, minSize bool)
bson/encode.go:239
↓ 8 callers
Function
benchWords
(b *testing.B, n int, decode bool)
snappy/snappy_test.go:126
↓ 7 callers
Method
Read
()
websocket/conn.go:56
↓ 7 callers
Method
SetLevel
set log level, any log level less than it will not log
log/log.go:120
↓ 7 callers
Method
addDoc
(v reflect.Value)
bson/encode.go:83
↓ 7 callers
Method
readByte
()
bson/decode.go:790
↓ 7 callers
Method
readInt32
()
bson/decode.go:770
↓ 6 callers
Method
MoveToFront
(e *Element)
list2/list.go:208
↓ 6 callers
Method
PushFront
(v interface{})
list2/list.go:184
↓ 6 callers
Method
ReadMessage
()
websocket/conn.go:52
↓ 6 callers
Method
SetString
(key string, value string)
config/config.go:141
↓ 6 callers
Method
addInt32
(v int32)
bson/encode.go:462
↓ 6 callers
Method
addInt64
(v int64)
bson/encode.go:467
↓ 6 callers
Method
addTimer
(t *timer)
time2/wheel.go:173
↓ 6 callers
Method
insertValue
(v interface{}, index int)
list2/list.go:177
↓ 6 callers
Method
returnCallError
(fn reflect.Value, err error)
rpc/client.go:146
↓ 5 callers
Method
Back
()
list2/list.go:91
↓ 5 callers
Method
Close
()
rpc/conn.go:25
↓ 5 callers
Method
Len
()
list2/list.go:79
↓ 5 callers
Function
NewChunkedWriter
(chunkSize int)
bytes2/chunked_writer.go:25
↓ 5 callers
Method
NewTimer
(d time.Duration)
time2/wheel.go:281
↓ 5 callers
Method
PushBackList
(other *List)
list2/list.go:238
↓ 5 callers
Method
PushFrontList
(other *List)
list2/list.go:244
↓ 5 callers
Method
WriteMessage
(messageType byte, message []byte)
websocket/conn.go:99
↓ 5 callers
Method
addStr
(v string)
bson/encode.go:439
↓ 5 callers
Method
insert
(e *Element, index int)
list2/list.go:165
↓ 5 callers
Method
read
(buf []byte)
websocket/conn.go:295
↓ 5 callers
Method
readBytes
(length int32)
bson/decode.go:799
↓ 5 callers
Method
remove
(e *Element)
list2/list.go:99
↓ 5 callers
Method
sendFrame
(opcode byte, message []byte)
websocket/conn.go:233
↓ 4 callers
Method
Acquire
()
sync2/semaphore.go:32
↓ 4 callers
Method
After
(d time.Duration)
time2/wheel.go:248
↓ 4 callers
Method
Counter
Counter returns the incrementing value part of the id. It's a runtime error to call this method with an invalid id.
bson/bson.go:315
↓ 4 callers
Method
Get
()
sync2/atomic.go:144
↓ 4 callers
Method
Get
()
log/log.go:42
↓ 4 callers
Method
InsertBefore
(v interface{}, mark *Element)
list2/list.go:192
↓ 4 callers
Method
MPush
(items []interface{})
ring/ring.go:74
↓ 4 callers
Method
Machine
Machine returns the 3-byte machine id part of the id. It's a runtime error to call this method with an invalid id.
bson/bson.go:303
↓ 4 callers
Method
MoveAfter
(e, mark *Element)
list2/list.go:231
↓ 4 callers
Method
MoveBefore
(e, mark *Element)
list2/list.go:223
↓ 4 callers
Method
MoveToBack
(e *Element)
list2/list.go:216
↓ 4 callers
Method
NewTicker
(d time.Duration)
time2/wheel.go:293
↓ 4 callers
Method
Pid
Pid returns the process id part of the id. It's a runtime error to call this method with an invalid id.
bson/bson.go:309
↓ 4 callers
Method
Prev
()
list2/list.go:24
↓ 4 callers
Method
Register
(name string, f interface{})
rpc/server.go:64
↓ 4 callers
Method
Reserve
(n int)
bytes2/chunked_writer.go:91
↓ 4 callers
Method
SetInt
(key string, n int)
config/config.go:153
↓ 4 callers
Method
Time
Time returns the timestamp part of the id. It's a runtime error to call this method with an invalid id.
bson/bson.go:295
↓ 4 callers
Method
Truncate
(n int)
bytes2/chunked_writer.go:57
↓ 4 callers
Method
Write
(p []byte)
ioutil2/sectionwriter.go:21
↓ 4 callers
Method
WriteString
(p string)
bytes2/chunked_writer.go:74
↓ 4 callers
Method
byteSlice
byteSlice returns byte slice of id from start to end. Calling this function with an invalid id will cause a runtime panic.
bson/bson.go:286
↓ 4 callers
Method
cascade
(tv [][]*timer, index int)
time2/wheel.go:118
↓ 4 callers
Method
getIndex
(n int)
time2/wheel.go:129
↓ 4 callers
Function
makeZeroDoc
(value interface{})
bson/bson_test.go:60
↓ 4 callers
Method
newTimer
(when time.Duration, period time.Duration, f func(time.Time, interface{}), arg interface{})
time2/wheel.go:200
↓ 4 callers
Method
readCStr
()
bson/decode.go:743
↓ 4 callers
Method
readDocTo
(out reflect.Value)
bson/decode.go:124
↓ 4 callers
Method
readInt64
()
bson/decode.go:778
↓ 4 callers
Method
readStr
()
bson/decode.go:734
↓ 4 callers
Function
roundtrip
(b, ebuf, dbuf []byte)
snappy/snappy_test.go:23
↓ 3 callers
Function
Encode
Encode returns the encoded form of src. The returned slice may be a sub- slice of dst if dst was large enough to hold the entire encoded block. Otherw
snappy/encode.go:81
next →
1–100 of 607, ranked by callers