Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cubxxw/awesome-go
/ functions
Functions
333 in github.com/cubxxw/awesome-go
⨍
Functions
333
◇
Types & classes
94
↓ 1 callers
Function
readChan
只读管道
code/go-super/40-main.go:21
↓ 1 callers
Function
readConf
(name string)
code/go-super/14-main.go:17
↓ 1 callers
Function
setupRouter
()
code/code/gin/main.go:20
↓ 1 callers
Function
show
(a interface{})
code/go-super/27-main.go:17
↓ 1 callers
Function
sortIndex
(arr []int)
code/go-super/16-main.go:14
↓ 1 callers
Method
start
实现接口
code/go-super/25-main.go:28
↓ 1 callers
Function
switch2
使用switch语句,可以判断一个变量是什么类型
code/go-super/28-main.go:29
↓ 1 callers
Function
test
()
code/go-super/45-main.go:22
↓ 1 callers
Function
test
()
code/go-super/44-main.go:17
↓ 1 callers
Function
test02
()
code/go-super/14-main.go:29
↓ 1 callers
Function
test2
()
code/go-super/45-main.go:31
↓ 1 callers
Function
test2
()
code/go-super/44-main.go:27
↓ 1 callers
Function
testmain
()
code/go-super/74-main.go:21
↓ 1 callers
Function
text
(a int)
code/go-super/18-main.go:5
↓ 1 callers
Function
text
(n int)
code/go-super/36-main.go:11
↓ 1 callers
Function
traverseListReverse2
反向遍历
code/code/list-valuea.go:68
↓ 1 callers
Function
traverseListReverse2
反向遍历
code/code/设计模式/1.go:119
↓ 1 callers
Function
writeChan
只写管道
code/go-super/40-main.go:34
Function
AddOne
(object Object)
code/beego/apiproject/models/object.go:25
Function
AddUser
(u User)
code/beego/apiproject/models/user.go:33
Function
BanchmarkFoo
(b *testing.B)
code/gin/util_test/util_test.go:8
Function
Benchmark
性能测试
code/go-test/util/util_test.go:45
Function
Delete
(ObjectId string)
code/beego/apiproject/models/object.go:50
Method
Delete
@Title Delete @Description delete the object @Param objectId path string true "The objectId you want to delete" @Success 200 {string} delete succes
code/beego/apiproject/controllers/object.go:86
Method
Delete
@Title Delete @Description delete the user @Param uid path string true "The uid you want to delete" @Success 200 {string} delete success! @Failure
code/beego/apiproject/controllers/user.go:86
Method
Delete
()
code/beego/myproject/controllers/default.go:27
Function
DeleteUser
(uid string)
code/beego/apiproject/models/user.go:84
Method
Deposit
deposit
code/go-super/80-main.go:18
Method
Deposit
deposit
code/go-super/80-main.go:37
Method
Drive
(car Car)
code/go-super/82-main.go:35
Method
Drive
(car Car)
code/go-super/82-main.go:44
Method
Drive
(car Car)
code/go-super/82-main.go:53
Method
Eat
狗实现了吃的方法
code/code/interface/main.go:48
Method
Eat
人实现了吃和睡的方法
code/code/interface/main.go:53
Function
Execute
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the r
code/test/clid/cmd/root.go:45
Function
Execute
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the r
code/code/cobra/clid3/cmd/root.go:43
Function
Execute
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the r
code/code/cobra/clid/cmd/root.go:42
Method
Get
@Title Get @Description find object by objectid @Param objectId path string true "the objectid you want to get" @Success 200 {object} models.Object
code/beego/apiproject/controllers/object.go:35
Method
Get
()
code/beego/myproject/controllers/default.go:11
Function
GetAll
()
code/beego/apiproject/models/object.go:38
Method
GetAll
@Title GetAll @Description get all objects @Success 200 {object} models.Object @Failure 403 :objectId is empty @router / [get]
code/beego/apiproject/controllers/object.go:53
Method
GetAll
@Title GetAll @Description get all Users @Success 200 {object} models.User @router / [get]
code/beego/apiproject/controllers/user.go:33
Function
GetAllUsers
()
code/beego/apiproject/models/user.go:46
Method
GetInfo
()
code/go-super/51-main.go:33
Method
GetInfo
()
code/go-super/51-main.go:43
Method
GetName
()
code/go-super/31-main.go:35
Method
GetName
()
code/go-super/30-main.go:26
Method
GetNodes
GetNodes:GetNodes 用于获取 node 列表中的所有 node。
code/go-super/88-main.go:68
Function
GetOne
(ObjectId string)
code/beego/apiproject/models/object.go:31
Method
GetPods
GetPods:GetPods 用于获取 pod 列表中的所有 pod。
code/go-super/88-main.go:63
Function
GetUser
(uid string)
code/beego/apiproject/models/user.go:39
Method
Head
()
code/beego/myproject/controllers/default.go:31
Function
Login
(username, password string)
code/beego/apiproject/models/user.go:75
Method
Login
@Title Login @Description Logs user into the system @Param username query string true "The username for login" @Param password query string true
code/beego/apiproject/controllers/user.go:100
Method
Logout
@Title logout @Description Logs out current logged in user session @Success 200 {string} logout success @router /logout [get]
code/beego/apiproject/controllers/user.go:115
Function
ParseDomainName
answer
code/go-super/77-main.go:40
Method
Post
@Title Create @Description create object @Param body body models.Object true "The object content" @Success 200 {string} models.Object.Id @Failure 4
code/beego/apiproject/controllers/object.go:21
Method
Post
@Title CreateUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 40
code/beego/apiproject/controllers/user.go:21
Method
Post
()
code/beego/myproject/controllers/default.go:17
Method
Put
@Title Update @Description update the object @Param objectId path string true "The objectid you want to update" @Param body body models.Object tr
code/beego/apiproject/controllers/object.go:66
Method
Put
@Title Update @Description update the user @Param uid path string true "The uid you want to update" @Param body body models.User true "body for
code/beego/apiproject/controllers/user.go:65
Method
Put
()
code/beego/myproject/controllers/default.go:23
Method
Run
()
code/go-super/82-main.go:19
Method
Run
()
code/go-super/82-main.go:27
Method
Run
Mercedes
code/go-super/81-main.go:31
Method
SetFlags
(qr, opcode, aa, tc, rd, ra, z, rcode uint16)
code/go-super/77-main.go:27
Method
SetInfo
(name string, age int, score float64)
code/go-super/51-main.go:48
Method
SetName
(name string)
code/go-super/31-main.go:40
Method
SetName
(name string)
code/go-super/30-main.go:31
Method
Sleep
人实现了吃和睡的方法
code/code/interface/main.go:58
Method
Sleep
含羞草实现了睡的方法
code/code/interface/main.go:63
Method
Start
声明了两个没有实现的方法
code/go-super/26-main.go:26
Method
Start
让Phone 实现 Usb接口的方法
code/go-super/26-main.go:36
Method
Start
让Camera 实现 Usb接口的方法
code/go-super/26-main.go:48
Method
Stop
()
code/go-super/26-main.go:27
Method
Stop
()
code/go-super/26-main.go:40
Method
Stop
()
code/go-super/26-main.go:52
Method
String
(name string)
code/go-super/85-main.go:14
Method
String
(name string)
code/go-super/85-main.go:22
Method
String
(name string)
code/go-super/85-main.go:30
Method
String
(name string)
code/go-super/85-main.go:38
Method
String
()
code/go-super/30-main.go:36
Method
Test
()
code/go-super/26-main.go:28
Function
TestBeego
TestBeego is a sample to run an endpoint test
code/beego/myproject/tests/default_test.go:23
Function
TestExact
精确测试
code/go-test/util/util_test.go:40
Function
TestFoo
(t *testing.T)
code/gin/util_test/util_test.go:14
Function
TestFuzzy
模糊测试
code/go-test/util/util_test.go:35
Function
TestGet
TestGet is a sample to run an endpoint test
code/beego/apiproject/tests/default_test.go:22
Function
TestMain
TestMain函数,用于测试前的初始化
code/go-test/util/util_test.go:55
Function
TestParseSize
功能测试:主要验证功能是否正常
code/go-test/util/util_test.go:22
Function
Text
自定义模板函数
code/gin/main.go:17
Function
Text2
(title string, content string)
code/gin/main.go:22
Method
Transfer
Withdrawal
code/go-super/80-main.go:10
Method
Transfer
Transfer
code/go-super/80-main.go:28
Function
Update
(ObjectId string, Score int64)
code/beego/apiproject/models/object.go:42
Function
UpdateUser
(uid string, uu *User)
code/beego/apiproject/models/user.go:50
Method
Withdraw
deposit
code/go-super/80-main.go:9
Method
Withdraw
Withdrawal
code/go-super/80-main.go:23
Method
Withdraw
Withdrawal
code/go-super/80-main.go:42
Method
eat
(food string)
code/go-super/29-main.go:28
← previous
next →
101–200 of 333, ranked by callers