Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/betty200744/ultimate-go
/ functions
Functions
2,090 in github.com/betty200744/ultimate-go
⨍
Functions
2,090
◇
Types & classes
433
↓ 4 callers
Method
Append
method, can be defined for any named type, except pointer and interface method, receiver can pointer and values method, value receiver, call by value,
effective-go/methods/pointers-vs-values.go:16
↓ 4 callers
Function
BuildMaxHeap
(arr []int)
algorithms/data-structures/heap/maxheap/maxheap.go:29
↓ 4 callers
Function
BuildMinHeap
(arr []int)
algorithms/data-structures/heap/minheap/minheap.go:29
↓ 4 callers
Function
CountNode
(node *Node)
algorithms/data-structures/tree/binary_search_tree/binary_search_tree.go:125
↓ 4 callers
Function
CreateBinaryTree
()
algorithms/data-structures/tree/binary_tree/binary_tree_test.go:8
↓ 4 callers
Method
Delete
(data int)
algorithms/data-structures/tree/binary_search_tree/binary_search_tree.go:64
↓ 4 callers
Method
Draw
()
design-pattern/creational/abstract_factory/abstract_factory.go:9
↓ 4 callers
Method
Find
(data int)
algorithms/data-structures/tree/binary_search_tree/binary_search_tree.go:96
↓ 4 callers
Method
FindById
method, value receiver
Language_Specification/reference-type/method/methods_receiver.go:42
↓ 4 callers
Function
GetIp
()
utils/network.go:21
↓ 4 callers
Function
GivenLevelOrder
(root *TreeNode, level int)
leetcode/binary_search/102_107_levelOrder/102_107_levelOrder.go:50
↓ 4 callers
Function
Hash
计算hash值
algorithms/data-structures/hashing/hashing_with_chaining/hashingWithChaining.go:50
↓ 4 callers
Function
Log
(w io.Writer, key, val string)
build-in-package/sync/sync-pool_test.go:26
↓ 4 callers
Function
MinWindow
(s string, t string)
leetcode/string/76_minWindow/76_minWindow.go:44
↓ 4 callers
Function
NewNode
(data int)
leetcode/binary_search/230.Kth-Smallest-Element-in-a-BST/230_KthSmallest.go:9
↓ 4 callers
Function
ReverseInt
(x int)
leetcode/7_reverseInt/7_reverseInt.go:8
↓ 4 callers
Method
RouteChat
A Bidirectional streaming RPC. Accepts a stream of RouteNotes sent while a route is being traversed, while receiving other RouteNotes (e.g. from othe
awesome-go/grpc-go/route_guide/routeguide/route_guide.pb.go:340
↓ 4 callers
Method
Scan
(value interface{})
awesome-go/gorm/pgtype/jsonb.go:13
↓ 4 callers
Function
SetUpRouter
()
awesome-go/bazel/go-tutorial/service/service.go:9
↓ 4 callers
Function
ToMap
(s string)
leetcode/string/76_minWindow/76_minWindow.go:32
↓ 4 callers
Method
Values
()
algorithms/data-structures/containers/containers.go:8
↓ 4 callers
Method
area
()
Language_Specification/reference-type/interfaces/interfaces_cheat_sheet.go:21
↓ 4 callers
Function
foo
()
diagnostics/profiling/pprof/http/main.go:12
↓ 4 callers
Function
logger
logger is to mock a sophisticated logging system. To simplify the example, we just print out the content.
awesome-go/grpc-go/features/interceptor/server/main.go:49
↓ 4 callers
Function
sovHelloworld
(x uint64)
awesome-go/gogoprobuf/proto/protoc-gen-gogofaster/helloworld/helloworld.pb.go:235
↓ 4 callers
Function
sovHelloworld
(x uint64)
awesome-go/gogoprobuf/proto/protoc-gen-grpc-gateway/helloworld/helloworld.pb.go:238
↓ 4 callers
Function
sovHelloworld
(x uint64)
awesome-go/gogoprobuf/proto/protoc-gen-gogofast/helloworld/helloworld.pb.go:254
↓ 4 callers
Function
sovHelloworld
(x uint64)
awesome-go/gogoprobuf/proto/protoc-gen-gofast/helloworld/helloworld.pb.go:254
↓ 4 callers
Function
sovHelloworld
(x uint64)
awesome-go/gogoprobuf/proto/protoc-gen-gogoslick/helloworld/helloworld.pb.go:313
↓ 4 callers
Function
toRadians
(num float64)
awesome-go/grpc-go/route_guide/server/server.go:171
↓ 4 callers
Function
unaryCall
(c pb.EchoClient, requestID int, message string, want codes.Code)
awesome-go/grpc-go/features/deadline/client/main.go:37
↓ 4 callers
Method
writeSubNode
(str string)
awesome-go/protoc-gen-star/printer.go:80
↓ 3 callers
Method
AddLast
(value interface{})
algorithms/data-structures/lists/singlylinkedlist/singlylinkedlist.go:64
↓ 3 callers
Function
BreadthFirst
Breadth-first search
algorithms/data-structures/tree/binary_search_tree/binary_search_tree.go:144
↓ 3 callers
Function
CodeString
(errorNo Code)
Language_Specification/errors/errors.go:18
↓ 3 callers
Function
CoinChange
(coins []int, amount int)
leetcode/dynamic_programming/322_coinChange/322_coinChange.go:10
↓ 3 callers
Method
DecodeText
(ci *ConnInfo, src []byte)
awesome-go/gorm/pgtype/int8range.go:54
↓ 3 callers
Method
Decrypt
(token string)
awesome-go/jwt-go/jwt.go:63
↓ 3 callers
Method
EXPECT
()
awesome-go/grpc-go/route_guide/mock_routeguide/rg_mock.go:116
↓ 3 callers
Method
Encrypt
(token string)
awesome-go/jwt-go/jwt.go:59
↓ 3 callers
Function
Exchange
(nums []int)
leetcode/lcof/21_exchange/21_exchange.go:3
↓ 3 callers
Function
Fib_DP_Tabulation
the best, Bottom-up DP Algorithm
leetcode/array/509_fibonacciNumber/509_fibonacciNumber.go:11
↓ 3 callers
Function
Fib_DP_memoized
bad
leetcode/array/509_fibonacciNumber/509_fibonacciNumber.go:26
↓ 3 callers
Function
FibonacciNumber
(N int)
leetcode/array/509_fibonacciNumber/509_fibonacciNumber.go:3
↓ 3 callers
Function
GetAgents
()
Language_Specification/reference-type/struct_test.go:33
↓ 3 callers
Function
GetArea
-------------------- Polymorphic function --------------------
Language_Specification/reference-type/interfaces/interfaces_cheat_sheet.go:60
↓ 3 callers
Function
GetArrayOfLenAndSize
(n, s int)
algorithms/utils/utils.go:7
↓ 3 callers
Method
GetFeature
A simple RPC. Obtains the feature at a given position. A feature with an empty name is returned if there's no feature at the given position.
awesome-go/grpc-go/route_guide/routeguide/route_guide.pb.go:323
↓ 3 callers
Method
GetLeftChildIndex
(parentIndex int)
algorithms/data-structures/heap/heap.go:18
↓ 3 callers
Method
GetRightChildIndex
(parentIndex int)
algorithms/data-structures/heap/heap.go:22
↓ 3 callers
Function
Height
(root *TreeNode)
leetcode/binary_search/543_diameterOfBinaryTree/543_diameterOfBinaryTree.go:18
↓ 3 callers
Function
Height
(root *TreeNode)
leetcode/binary_search/102_107_levelOrder/102_107_levelOrder.go:16
↓ 3 callers
Function
HelloWorld
(key string)
build-in-package/singleflight/singleflight.go:13
↓ 3 callers
Function
Index
计算table中的index
algorithms/data-structures/hashing/hashing_with_chaining/hashingWithChaining.go:59
↓ 3 callers
Function
IsPrimes
(n int)
leetcode/math/204_countPrimes/204_countPrimes.go:8
↓ 3 callers
Function
KthBiggest
(root *Node, k int)
leetcode/binary_search/230.Kth-Smallest-Element-in-a-BST/230_KthSmallest.go:52
↓ 3 callers
Function
KthSmallest
(root *Node, k int)
leetcode/binary_search/230.Kth-Smallest-Element-in-a-BST/230_KthSmallest.go:41
↓ 3 callers
Function
KthSmallest
(root *Node, k int)
algorithms/data-structures/tree/binary_search_tree/binary_search_tree.go:131
↓ 3 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
awesome-go/gogoprobuf/proto/protoc-gen-gogofaster/helloworld/helloworld.pb.go:153
↓ 3 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
awesome-go/gogoprobuf/proto/protoc-gen-gogofaster/helloworld/helloworld.pb.go:183
↓ 3 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
awesome-go/gogoprobuf/proto/protoc-gen-grpc-gateway/helloworld/helloworld.pb.go:156
↓ 3 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
awesome-go/gogoprobuf/proto/protoc-gen-grpc-gateway/helloworld/helloworld.pb.go:186
↓ 3 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
awesome-go/gogoprobuf/proto/protoc-gen-gogofast/helloworld/helloworld.pb.go:158
↓ 3 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
awesome-go/gogoprobuf/proto/protoc-gen-gogofast/helloworld/helloworld.pb.go:192
↓ 3 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
awesome-go/gogoprobuf/proto/protoc-gen-gofast/helloworld/helloworld.pb.go:158
↓ 3 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
awesome-go/gogoprobuf/proto/protoc-gen-gofast/helloworld/helloworld.pb.go:192
↓ 3 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
awesome-go/gogoprobuf/proto/protoc-gen-gogoslick/helloworld/helloworld.pb.go:231
↓ 3 callers
Method
MarshalToSizedBuffer
(dAtA []byte)
awesome-go/gogoprobuf/proto/protoc-gen-gogoslick/helloworld/helloworld.pb.go:261
↓ 3 callers
Method
MaxHeapifyDown
向下对比,传入parentIndex, 递归与left and right child对比,大的做parent
algorithms/data-structures/heap/maxheap/maxheap.go:40
↓ 3 callers
Method
Message
Message return error message
Language_Specification/errors/errors.go:49
↓ 3 callers
Method
MinHeapifyDown
向下对比,传入parentIndex, 递归与left and right child对比,小的做parent
algorithms/data-structures/heap/minheap/minheap.go:40
↓ 3 callers
Method
Move
()
design-pattern/go-design/conversion/conversion.go:6
↓ 3 callers
Function
New
()
algorithms/data-structures/stack/stack.go:22
↓ 3 callers
Function
NewConfig
(workdir, user string)
design-pattern/creational/prototype/prototype.go:8
↓ 3 callers
Function
NewConsulClient
(addr string)
awesome-go/consul/register/register.go:21
↓ 3 callers
Function
NewIdGenerator
NewNode returns a new snowflake worker that can be used to generate snowflake IDs
design-pattern/creational/simple_factory/simple_factory.go:21
↓ 3 callers
Function
NewNode
(data int)
design-pattern/structual/composite/composite.go:10
↓ 3 callers
Function
NewNode
(data int)
leetcode/lcof/27_mirrorTree/27_mirrorTree.go:11
↓ 3 callers
Method
Pay
(*PaymentContext)
design-pattern/behavioral/strategy/strategy.go:35
↓ 3 callers
Method
Pop
()
algorithms/data-structures/stack/stack.go:42
↓ 3 callers
Method
Put
(key string, value interface{})
mock/user/user.go:7
↓ 3 callers
Function
QueryLatestDate
()
awesome-go/influxdb-client-go/basic_example/query_data.go:22
↓ 3 callers
Method
RemoveFirst
()
algorithms/data-structures/lists/singlylinkedlist/singlylinkedlist.go:75
↓ 3 callers
Method
Reset
()
kubernetes/proto/greeting.pb.go:81
↓ 3 callers
Function
ReturnError
(e Code)
Language_Specification/errors/errors.go:75
↓ 3 callers
Method
Service
(service, tag string)
awesome-go/consul/register/register.go:12
↓ 3 callers
Method
Size
()
awesome-go/gogoprobuf/proto/protoc-gen-gogofaster/helloworld/helloworld.pb.go:209
↓ 3 callers
Method
Size
()
awesome-go/gogoprobuf/proto/protoc-gen-gogofaster/helloworld/helloworld.pb.go:222
↓ 3 callers
Method
Size
()
awesome-go/gogoprobuf/proto/protoc-gen-grpc-gateway/helloworld/helloworld.pb.go:212
↓ 3 callers
Method
Size
()
awesome-go/gogoprobuf/proto/protoc-gen-grpc-gateway/helloworld/helloworld.pb.go:225
↓ 3 callers
Method
Size
()
awesome-go/gogoprobuf/proto/protoc-gen-gogofast/helloworld/helloworld.pb.go:222
↓ 3 callers
Method
Size
()
awesome-go/gogoprobuf/proto/protoc-gen-gogofast/helloworld/helloworld.pb.go:238
↓ 3 callers
Method
Size
()
awesome-go/gogoprobuf/proto/protoc-gen-gofast/helloworld/helloworld.pb.go:222
↓ 3 callers
Method
Size
()
awesome-go/gogoprobuf/proto/protoc-gen-gofast/helloworld/helloworld.pb.go:238
↓ 3 callers
Method
Size
()
awesome-go/gogoprobuf/proto/protoc-gen-gogoslick/helloworld/helloworld.pb.go:287
↓ 3 callers
Method
Size
()
awesome-go/gogoprobuf/proto/protoc-gen-gogoslick/helloworld/helloworld.pb.go:300
↓ 3 callers
Method
Start
()
build-in-package/sync/sync_struct.go:40
↓ 3 callers
Method
Value
()
algorithms/data-structures/lists/arraylist/arraylist.go:38
↓ 3 callers
Method
Value
()
awesome-go/gorm/pgtype/jsonb.go:10
↓ 3 callers
Function
Visit
(node *Node)
algorithms/data-structures/tree/binary_tree/binary_tree.go:40
← previous
next →
101–200 of 2,090, ranked by callers