MCPcopy Create free account

hub / github.com/6boris/Golang-Learn / functions

Functions1,648 in github.com/6boris/Golang-Learn

↓ 2 callersFunctionProducer
生产者: 生成 factor 整数倍的序列
Concurrency-and-Parallelism/Producer_Consumer/v2/main.go:11
↓ 2 callersFunctionProducer
生产者: 生成 factor 整数倍的序列
Concurrency-and-Parallelism/Producer_Consumer/v1/main.go:9
↓ 2 callersFunctionPublish
发布消息
Framework/Nsq/v2/send.go:55
↓ 2 callersMethodPush
元素入栈
Leetcode/0155-Min-Stack/Solution.go:27
↓ 2 callersMethodPush
(x interface{})
Basic-Grammar/Heap/v1/ListNodeQueue.go:15
↓ 2 callersMethodPut
(key, val int)
Temp/Interview/o1/solution.go:30
↓ 2 callersFunctionQuickSort
快速排序(Qucik Sort)
Algorithm/Sort/Sort.go:63
↓ 2 callersMethodRecordWin
RecordWin will store a win for a player, incrementing wins if already known
Basic-Grammar/command-line/v1/FileSystemStore.go:75
↓ 2 callersMethodRecordWin
RecordWin will store a win for a player, incrementing wins if already known
Basic-Grammar/io/v7/FileSystemStore.go:43
↓ 2 callersMethodRecordWin
RecordWin will store a win for a player, incrementing wins if already known
Basic-Grammar/io/v9/FileSystemStore.go:75
↓ 2 callersMethodRecordWin
RecordWin will store a win for a player, incrementing wins if already known
Basic-Grammar/io/v6/FileSystemStore.go:43
↓ 2 callersMethodRecordWin
RecordWin will store a win for a player, incrementing wins if already known
Basic-Grammar/io/v5/FileSystemStore.go:33
↓ 2 callersMethodRecordWin
RecordWin will store a win for a player, incrementing wins if already known
Basic-Grammar/io/v8/FileSystemStore.go:71
↓ 2 callersMethodRecordWin
RecordWin will store a win for a player, incrementing wins if already known
Basic-Grammar/io/v4/FileSystemStore.go:33
↓ 2 callersMethodRegister
注册命令
Design-Patterns-Golang/Behavior/Command/Command.go:58
↓ 2 callersMethodRegisterCollector
(name string, collector Collector)
GreekTime/go_learning/code/ch41/microkernel/agent.go:79
↓ 2 callersMethodRegisterUser
(u *User)
Design-Patterns-Golang/Behavior/Mediator/Mediator.go:16
↓ 2 callersMethodSaveToMemento
备忘
Design-Patterns-Golang/Behavior/Memento/Memento.go:30
↓ 2 callersMethodSendMsg
(msg string)
Design-Patterns-Golang/Behavior/Mediator/Mediator.go:25
↓ 2 callersMethodSetNextHandler
(IScreenEventHandler)
Design-Patterns-Golang/Behavior/ChainOfResponsibility/ChainOfResponsibility.go:18
↓ 2 callersMethodSetState
(state string)
Design-Patterns-Golang/Behavior/Observer/Observer.go:20
↓ 2 callersFunctionSift
(arr []int, i int, arrLen int)
Algorithm/Sort/Sort.go:147
↓ 2 callersFunctionSlieve
The prime sieve: Daisy-chain Filter processes.
Concurrency-and-Parallelism/sieve.go:24
↓ 2 callersFunctionSolution
(str [][]string)
Interview/d/solution.go:15
↓ 2 callersFunctionSolution
()
Leetcode/0455-Assign-Cookies/Solution.go:3
↓ 2 callersFunctionSolution
()
Leetcode/0083-Remove-Duplicates-from-Sorted-List/Solution.go:3
↓ 2 callersMethodStart
(agtCtx context.Context)
GreekTime/go_learning/code/ch41/microkernel/agent.go:41
↓ 2 callersMethodStart
()
GreekTime/go_learning/code/ch41/microkernel/agent.go:131
↓ 2 callersFunctionStrchr
Strchr :Returns a pointer to the last occurrence of string in the string str
Algorithm/KMP/v2/kmp.go:9
↓ 2 callersFunctionStrstr
Strstr :Use kmp for strstr function
Algorithm/KMP/v2/kmp.go:19
↓ 2 callersFunctionSum
(ops ...int)
GreekTime/go_learning/code/ch10/func/func_test.go:35
↓ 2 callersMethodTesting
()
Design-Patterns-Golang/Struct/Facade/Facade.go:20
↓ 2 callersMethodTop
返回栈顶元素,如果栈为空则元素为空error不为空
Algorithm/Stack/main.go:32
↓ 2 callersMethodUnmarshalEasyJSON
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
GreekTime/go_learning/code/ch43/easyjson/struct_def_easyjson.go:120
↓ 2 callersMethodUnmarshalJSON
UnmarshalJSON supports json.Unmarshaler interface
GreekTime/go_learning/code/ch43/easyjson/struct_def_easyjson.go:196
↓ 2 callersMethodWrite
Design-Patterns-Golang/Behavior/Memento/Memento.go:20
↓ 2 callersMethodWriteHelloWorld
()
GreekTime/go_learning/code/ch11/interface/interface_test.go:6
↓ 2 callersFunctionabs
(x int)
Basic-Grammar/Scan/v2/main.go:23
↓ 2 callersFunctionassertLeague
(t *testing.T, got, want []Player)
Basic-Grammar/json/v6/server_test.go:145
↓ 2 callersFunctionassertResponseBody
(t *testing.T, got, want string)
Basic-Grammar/http-server/v2/server_test.go:70
↓ 2 callersFunctionassertResponseBody
(t *testing.T, got, want string)
Basic-Grammar/http-server/v3/server_test.go:86
↓ 2 callersFunctionassertResponseBody
(t *testing.T, got, want string)
Basic-Grammar/http-server/v4/server_test.go:103
↓ 2 callersFunctionassertScoreEquals
(t *testing.T, got, want int)
Basic-Grammar/io/v3/FileSystemStore_test.go:81
↓ 2 callersFunctioncheckPalindrome
(s string, start int, end int)
Leetcode/0647-Palindromic-Substrings/Solution.go:17
↓ 2 callersFunctioncheckPossibility
(nums []int)
Leetcode/0665-Non-decreasing-Array/Solution.go:3
↓ 2 callersFunctionclimbStairs
dp[i] = dp[i-1] + dp[i-2]
Leetcode/0070-Climbing-Stairs/Solution.go:6
↓ 2 callersMethodcreateDepartment
(db string)
Design-Patterns-Golang/Create/AbstractFactory/AbstractFactory.go:226
↓ 2 callersFunctioneasyjson6a975c40DecodeCh47
(in *jlexer.Lexer, out *Response)
GreekTime/go_learning/code/ch47/structs_easyjson.go:20
↓ 2 callersFunctioneasyjson6a975c40DecodeCh471
(in *jlexer.Lexer, out *Request)
GreekTime/go_learning/code/ch47/structs_easyjson.go:103
↓ 2 callersFunctioneasyjson6a975c40EncodeCh47
(out *jwriter.Writer, in Response)
GreekTime/go_learning/code/ch47/structs_easyjson.go:53
↓ 2 callersFunctioneasyjson6a975c40EncodeCh471
(out *jwriter.Writer, in Request)
GreekTime/go_learning/code/ch47/structs_easyjson.go:157
↓ 2 callersFunctioneasyjson7c82d03DecodeCh43Easyjson
(in *jlexer.Lexer, out *JobInfo)
GreekTime/go_learning/code/ch43/easyjson/struct_def_easyjson.go:20
↓ 2 callersFunctioneasyjson7c82d03DecodeCh43Easyjson1
(in *jlexer.Lexer, out *Employee)
GreekTime/go_learning/code/ch43/easyjson/struct_def_easyjson.go:123
↓ 2 callersFunctioneasyjson7c82d03DecodeCh43Easyjson2
(in *jlexer.Lexer, out *BasicInfo)
GreekTime/go_learning/code/ch43/easyjson/struct_def_easyjson.go:206
↓ 2 callersFunctioneasyjson7c82d03EncodeCh43Easyjson
(out *jwriter.Writer, in JobInfo)
GreekTime/go_learning/code/ch43/easyjson/struct_def_easyjson.go:72
↓ 2 callersFunctioneasyjson7c82d03EncodeCh43Easyjson1
(out *jwriter.Writer, in Employee)
GreekTime/go_learning/code/ch43/easyjson/struct_def_easyjson.go:156
↓ 2 callersFunctioneasyjson7c82d03EncodeCh43Easyjson2
(out *jwriter.Writer, in BasicInfo)
GreekTime/go_learning/code/ch43/easyjson/struct_def_easyjson.go:239
↓ 2 callersFunctionf
(x interface{})
Interview/Awesome-Go-Interview-Questions-and-Answers/Language-Specification/interface-Pointers/main.go:6
↓ 2 callersMethodf
()
Interview/Awesome-Go-Interview-Questions-and-Answers/Language-Specification/Type-Shadowing/main.go:25
↓ 2 callersFunctionfillBySettings
(st interface{}, settings map[string]interface{})
GreekTime/go_learning/code/ch38/flexible_reflect_test.go:39
↓ 2 callersFunctionfindDuplicate
双指针 nums[n+1], index is [0, n], num is [1, n] consider as cycle linked list, nums[i] is the index of next position. No way to jump back to index =
Leetcode/0287-Find-the-Duplicate-Number/Solution.go:8
↓ 2 callersFunctionfindIndexByBinarySearch
* Golang map实现原理是hash map(核心元素是桶,key通过哈希算法被归入不同的bucket中), key是无序的,很多应用场景可能需要map key有序(例如交易所订单撮合),C++ 的stl map 实现了key有序,实际上是TreeMap是基于树(红黑树)的实现方式,
Algorithm/Tree/Order_Map/Solution.go:19
↓ 2 callersFunctionfindLHS
(nums []int)
Leetcode/0594-Longest-Harmonious-Subsequence/Solution.go:10
↓ 2 callersFunctiong
(x *interface{})
Interview/Awesome-Go-Interview-Questions-and-Answers/Language-Specification/interface-Pointers/main.go:9
↓ 2 callersMethodg
()
Interview/Awesome-Go-Interview-Questions-and-Answers/Language-Specification/Type-Shadowing/main.go:12
↓ 2 callersFunctiongetLeagueFromResponse
(t *testing.T, body io.Reader)
Basic-Grammar/command-line/v1/server_test.go:133
↓ 2 callersFunctiongetLeagueFromResponse
(t *testing.T, body io.Reader)
Basic-Grammar/io/v7/server_test.go:133
↓ 2 callersFunctiongetLeagueFromResponse
(t *testing.T, body io.Reader)
Basic-Grammar/io/v2/server_test.go:133
↓ 2 callersFunctiongetLeagueFromResponse
(t *testing.T, body io.Reader)
Basic-Grammar/io/v9/server_test.go:133
↓ 2 callersFunctiongetLeagueFromResponse
(t *testing.T, body io.Reader)
Basic-Grammar/io/v6/server_test.go:133
↓ 2 callersFunctiongetLeagueFromResponse
(t *testing.T, body io.Reader)
Basic-Grammar/io/v5/server_test.go:133
↓ 2 callersFunctiongetLeagueFromResponse
(t *testing.T, body io.Reader)
Basic-Grammar/io/v8/server_test.go:133
↓ 2 callersFunctiongetLeagueFromResponse
(t *testing.T, body io.Reader)
Basic-Grammar/io/v3/server_test.go:133
↓ 2 callersFunctiongetLeagueFromResponse
(t *testing.T, body io.Reader)
Basic-Grammar/io/v1/server_test.go:133
↓ 2 callersFunctiongetLeagueFromResponse
(t *testing.T, body io.Reader)
Basic-Grammar/io/v4/server_test.go:133
↓ 2 callersFunctiongetLeagueFromResponse
(t *testing.T, body io.Reader)
Basic-Grammar/json/v6/server_test.go:134
↓ 2 callersFunctiongetRob
(nums []int, frist int, last int)
Leetcode/0213-House-Robber-II/Solution.go:15
↓ 2 callersMethodinsert
(*User)
Design-Patterns-Golang/Create/AbstractFactory/AbstractFactory.go:79
↓ 2 callersFunctionisAnagram
(s string, t string)
Leetcode/0242-Valid-Anagram/Solution.go:3
↓ 2 callersFunctionisSubsequence
func isSubsequence(s string, t string) bool { last := 0 for i := 0; i < len(s); i++ { for j := last; j < len(t); j++ { if s[i] == t[j] { la
Leetcode/0392-Is-Subsequence/Solution.go:22
↓ 2 callersFunctionjudgeSquareSum
(c int)
Leetcode/0633-Sum-of-Square-Numbers/Solution.go:7
↓ 2 callersFunctionnewLeagueRequest
()
Basic-Grammar/command-line/v1/server_test.go:158
↓ 2 callersFunctionnewLeagueRequest
()
Basic-Grammar/io/v7/server_test.go:158
↓ 2 callersFunctionnewLeagueRequest
()
Basic-Grammar/io/v2/server_test.go:158
↓ 2 callersFunctionnewLeagueRequest
()
Basic-Grammar/io/v9/server_test.go:158
↓ 2 callersFunctionnewLeagueRequest
()
Basic-Grammar/io/v6/server_test.go:158
↓ 2 callersFunctionnewLeagueRequest
()
Basic-Grammar/io/v5/server_test.go:158
↓ 2 callersFunctionnewLeagueRequest
()
Basic-Grammar/io/v8/server_test.go:158
↓ 2 callersFunctionnewLeagueRequest
()
Basic-Grammar/io/v3/server_test.go:158
↓ 2 callersFunctionnewLeagueRequest
()
Basic-Grammar/io/v1/server_test.go:158
↓ 2 callersFunctionnewLeagueRequest
()
Basic-Grammar/io/v4/server_test.go:158
↓ 2 callersFunctionnewLeagueRequest
()
Basic-Grammar/json/v6/server_test.go:159
↓ 2 callersFunctionotherTask
()
GreekTime/go_learning/code/ch18/csp/async_service_test.go:14
↓ 2 callersMethodpermission
权限判断
Design-Patterns-Golang/Struct/Proxy/Proxy.go:52
↓ 2 callersFunctionprintType
(i I)
Interview/Awesome-Go-Interview-Questions-and-Answers/Language-Specification/Type-Shadowing/main.go:28
↓ 2 callersFunctionprocessRequest
(size int)
Complicat/v6/06.Pool.go:34
↓ 2 callersFunctionprocessRequest
(reqs []string)
GreekTime/go_learning/code/ch47/optmization.go:22
↓ 2 callersFunctionrob
dp[i] = max(dp[i-2],dp[i-3]) + nums[i]
Leetcode/0198-House-Robber/Solution.go:11
↓ 2 callersFunctionrob
(nums []int)
Leetcode/0213-House-Robber-II/Solution.go:3
↓ 2 callersFunctionrunTask
(id int)
GreekTime/go_learning/code/ch25/until_all_done/until_all_done_test.go:10
← previousnext →301–400 of 1,648, ranked by callers