Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/6boris/Golang-Learn
/ functions
Functions
1,648 in github.com/6boris/Golang-Learn
⨍
Functions
1,648
◇
Types & classes
352
↓ 1 callers
Function
coinChange
(coins []int, amount int)
Temp/Interview/v1/main.go:12
↓ 1 callers
Function
countBound
(n, m int, len []int)
Temp/Interview/v2/main.go:26
↓ 1 callers
Function
countPrimes
(n int)
Leetcode/0204-Count-Primes/Solution.go:3
↓ 1 callers
Function
createNode
(value int)
Google-Engineer/4-1/node.go:10
↓ 1 callers
Method
createUser
(db string)
Design-Patterns-Golang/Create/AbstractFactory/AbstractFactory.go:211
↓ 1 callers
Function
d1
()
Basic-Grammar/Panic/v1/main.go:7
↓ 1 callers
Function
d2
()
Basic-Grammar/Panic/v1/main.go:13
↓ 1 callers
Function
d3
()
Basic-Grammar/Panic/v1/main.go:22
↓ 1 callers
Function
dailyTemperatures
(temperatures []int)
Leetcode/0739-Daily-Temperatures/Solution.go:46
↓ 1 callers
Function
dataProducer
(ch chan int, wg *sync.WaitGroup)
GreekTime/go_learning/code/ch20/channel_close/channel_close_test.go:9
↓ 1 callers
Function
deleteDuplicates
(head *ListNode)
Leetcode/0206-Reverse-Linked-List/Solution.go:33
↓ 1 callers
Method
depth
()
Algorithm/Tree/BinaryTree/BinaryTree.go:80
↓ 1 callers
Method
destoryCollectors
()
GreekTime/go_learning/code/ch41/microkernel/agent.go:119
↓ 1 callers
Function
e1
()
Basic-Grammar/Defer/defer4.go:8
↓ 1 callers
Function
e2
()
Basic-Grammar/Defer/defer4.go:14
↓ 1 callers
Function
e3
()
Basic-Grammar/Defer/defer4.go:22
↓ 1 callers
Function
f
()
Interview/Awesome-Go-Interview-Questions-and-Answers/Language-Specification/recover/main.go:5
↓ 1 callers
Function
f1
()
Interview/Awesome-Go-Interview-Questions-and-Answers/Language-Specification/Panic-Stack/main.go:3
↓ 1 callers
Function
f1
** func f1() (r int) { t := 5 1.直接赋值 r = t 2.defer被插入到赋值与返回之间执行,这个例子中返回值没有被修改过 defer func() { t = t + 5 }() 3. 空的return指令 return t } */
Basic-Grammar/Defer/defer1.go:23
↓ 1 callers
Function
f2
()
Interview/Awesome-Go-Interview-Questions-and-Answers/Language-Specification/Panic-Stack/main.go:9
↓ 1 callers
Function
f2
()
Basic-Grammar/Defer/defer2.go:5
↓ 1 callers
Function
f3
()
Interview/Awesome-Go-Interview-Questions-and-Answers/Language-Specification/Panic-Stack/main.go:15
↓ 1 callers
Function
f3
()
Basic-Grammar/Defer/defer3.go:5
↓ 1 callers
Function
fillMatrix
(m *[row][col]int)
GreekTime/go_learning/code/ch46/tools/file/prof.go:17
↓ 1 callers
Function
findErrorNums
(nums []int)
Leetcode/0645-Set-Mismatch/Solution.go:10
↓ 1 callers
Function
findMaxConsecutiveOnes
(nums []int)
Leetcode/0485-Max-Consecutive-Ones/Solution.go:10
↓ 1 callers
Function
generateStringToUsers
将字符串转用户对象
Interview/d/solution.go:75
↓ 1 callers
Function
generateTime
将字符串时间转化成秒
Interview/d/solution.go:89
↓ 1 callers
Method
getDepartment
(int)
Design-Patterns-Golang/Create/AbstractFactory/AbstractFactory.go:123
↓ 1 callers
Function
getK
(arr []int)
Algorithm/Sort/Sort.go:260
↓ 1 callers
Function
getLeagueFromResponse
(t *testing.T, body io.Reader)
Basic-Grammar/json/v5/server_test.go:134
↓ 1 callers
Function
getLeagueFromResponse
(t *testing.T, body io.Reader)
Basic-Grammar/json/v4/server_test.go:125
↓ 1 callers
Method
getLeagueTable
()
Basic-Grammar/json/v3/server.go:47
↓ 1 callers
Function
getPrefix
(language string)
Basic-Grammar/fmt/Println/Test2/Hello.go:15
↓ 1 callers
Method
getUser
(int)
Design-Patterns-Golang/Create/AbstractFactory/AbstractFactory.go:80
↓ 1 callers
Function
handle
(int)
Basic-Grammar/time/v2/after/main.go:10
↓ 1 callers
Function
handle
(int)
Basic-Grammar/time/v1/time_test.go:43
↓ 1 callers
Function
hello
Temp/cgo/test.c:3
↓ 1 callers
Function
identity1
(x S1)
Basic-Grammar/Defer/escape1.go:20
↓ 1 callers
Function
identity2
(z *S2)
Basic-Grammar/Defer/escape2.go:21
↓ 1 callers
Function
initConsumer
(topic, channel, addr string)
Framework/Nsq/v7/c/consumer.go:32
↓ 1 callers
Function
initData
初始化数据
Algorithm/Sort/Sort_test.go:26
↓ 1 callers
Function
initialisePlayerDBFile
(file *os.File)
Basic-Grammar/command-line/v1/FileSystemStore.go:37
↓ 1 callers
Function
initialisePlayerDBFile
(file *os.File)
Basic-Grammar/io/v9/FileSystemStore.go:37
↓ 1 callers
Function
initialisePlayerDBFile
(file *os.File)
Basic-Grammar/io/v8/FileSystemStore.go:36
↓ 1 callers
Function
isCancelled
(cancelChan chan struct{})
GreekTime/go_learning/code/ch21/cancel_by_close/cancel_test.go:9
↓ 1 callers
Function
isCancelled
(ctx context.Context)
GreekTime/go_learning/code/ch22/cancel_by_context/cancel_by_context_test.go:10
↓ 1 callers
Function
isEqual
(data1 []int, data2 []int)
Leetcode/0075-Sort-Colors/Solution_test.go:7
↓ 1 callers
Function
isEqual
(arr1, arr2 []int)
Basic-Grammar/Sort/Sort_test.go:25
↓ 1 callers
Function
lengthOfLongestSubstring
(s string)
Algorithm/String/lengthOfLongestSubstring/main.go:5
↓ 1 callers
Function
less
(a int, b int)
Basic-Grammar/Stack/Temp.go:5
↓ 1 callers
Function
levelorder
(root *node)
Algorithm/Tree/BinaryTree/BinaryTree.go:54
↓ 1 callers
Function
localIP
获取本机IP
Tool/GetIpAddr/main.go:13
↓ 1 callers
Function
lockAccess
()
GreekTime/go_learning/code/ch48/lock/lock_test.go:39
↓ 1 callers
Function
lockFreeAccess
()
GreekTime/go_learning/code/ch48/lock/lock_test.go:21
↓ 1 callers
Function
longestConsecutive
(nums []int)
Leetcode/0128-Longest-Consecutive-Sequence/Solution.go:3
↓ 1 callers
Function
longestPalindrome
(s string)
Leetcode/0409-Longest-Palindrome/Solution.go:3
↓ 1 callers
Function
matrixReshape
主要是用了 matrix[index / width][index % width] 来转换矩阵 上面这个公式会根据列的长度来输出一个矩阵
Leetcode/0566-Reshape-the-Matrix/Solution.go:7
↓ 1 callers
Function
max
(a, b int)
Algorithm/Tree/BinaryTree/BinaryTree.go:15
↓ 1 callers
Function
max
(x, y int)
Basic-Grammar/Scan/v2/main.go:17
↓ 1 callers
Function
maxDepth
(root *TreeNode)
Leetcode/0104-Maximum-Depth-of-Binary-Tree/Solution.go:18
↓ 1 callers
Function
maxProfit
(prices []int)
Leetcode/0122-Best-Time-to-Buy-and-Sell-Stock-II/Solution.go:3
↓ 1 callers
Function
maxProfit
(prices []int)
Leetcode/0121-Best-Time-to-Buy-and-Sell-Stock/Solution.go:16
↓ 1 callers
Function
mergeTwoLists
** * Definition for singly-linked list. * type ListNode struct { * Val int * Next *ListNode * } */
Leetcode/0021-Merge-Two-Sorted-Lists/Solution.go:12
↓ 1 callers
Function
minPathSum
(grid [][]int)
Leetcode/0064-Minimum-Path-Sum/Solution.go:3
↓ 1 callers
Function
moveZeroes
Golang的切片是一个非常特殊的类型, 此时的nums是介于传值和传引用之间的 类型,值会改变,但是len 和cap 并不会改变 所以才会有nums = append(nums, 1)这种骚操作
Leetcode/0283-Move-Zeroes/Solution.go:7
↓ 1 callers
Function
myFunction
(i int, arr [2]int)
Asm/v2/main.go:5
↓ 1 callers
Function
myFunction
(ms *MyStruct)
Asm/v6/main.go:11
↓ 1 callers
Function
myFunction
(ms *MyStruct)
Asm/v5/main.go:11
↓ 1 callers
Function
myFunction
(i int, arr [2]int)
Asm/v3/main.go:5
↓ 1 callers
Function
myFunction
(a, b int)
Asm/v1/main.go:3
↓ 1 callers
Function
myFunction
(a MyStruct, b *MyStruct)
Asm/v4/main.go:9
↓ 1 callers
Function
newLeagueRequest
()
Basic-Grammar/json/v5/server_test.go:159
↓ 1 callers
Function
newLeagueRequest
()
Basic-Grammar/json/v4/server_test.go:150
↓ 1 callers
Function
numFriendRequests
(ages []int)
Temp/Interview/v3/main.go:9
↓ 1 callers
Function
pase_student
()
Interview/Awesome-Go-Interview-Questions-and-Answers/Language-Specification/for_range/main.go:14
↓ 1 callers
Function
postorder
(n *node)
Algorithm/Tree/BinaryTree/BinaryTree.go:45
↓ 1 callers
Function
preorder
(n *node)
Algorithm/Tree/BinaryTree/BinaryTree.go:36
↓ 1 callers
Function
printOriginalSlice
(subslice *[]int)
Interview/Awesome-Go-Interview-Questions-and-Answers/Internals/Slice-Internals/main.go:10
↓ 1 callers
Function
processRequestOld
(reqs []string)
GreekTime/go_learning/code/ch47/optmization.go:45
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/http-server/v5/server.go:40
↓ 1 callers
Method
processWin
(w http.ResponseWriter)
Basic-Grammar/http-server/v3/server.go:41
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/http-server/v4/server.go:40
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/command-line/v1/server.go:71
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/io/v7/server.go:71
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/io/v2/server.go:71
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/io/v9/server.go:71
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/io/v6/server.go:71
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/io/v5/server.go:71
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/io/v8/server.go:71
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/io/v3/server.go:71
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/io/v1/server.go:71
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/io/v4/server.go:71
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/json/v2/server.go:60
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/json/v6/server.go:71
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/json/v5/server.go:71
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/json/v3/server.go:74
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/json/v1/server.go:40
↓ 1 callers
Method
processWin
(w http.ResponseWriter, player string)
Basic-Grammar/json/v4/server.go:69
↓ 1 callers
Function
readMessage
()
Basic-Grammar/Sync/WaitGroup/v1/Game.go:26
← previous
next →
601–700 of 1,648, ranked by callers