Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BaiZe1998/go-learning
/ functions
Functions
787 in github.com/BaiZe1998/go-learning
⨍
Functions
787
◇
Types & classes
177
↓ 94 callers
Method
add
(stage int, npc *NPC, num int)
dragon/npc.go:179
↓ 32 callers
Function
newHistoryInfo
(info string, options ...text.WriteOption)
dragon/printer.go:32
↓ 26 callers
Method
addHistory
接收历史数据
dragon/printer.go:284
↓ 14 callers
Method
Close
(context.Context)
storage/mongodb/mongodb.go:49
↓ 11 callers
Method
addOperateHint
显示操作提示
dragon/printer.go:279
↓ 11 callers
Function
file_blog_v1_blog_proto_rawDescGZIP
()
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog.pb.go:647
↓ 8 callers
Method
SayHello
Sends a greeting
kit/transaction/helloworld/api/helloworld/v1/greeter_grpc.pb.go:26
↓ 7 callers
Function
file_conf_conf_proto_rawDescGZIP
()
di/helloworld/internal/conf/conf.pb.go:507
↓ 7 callers
Function
file_conf_conf_proto_rawDescGZIP
()
doutok-course/basic-knowledge/blog-demo/backend/blog-service/internal/conf/conf.pb.go:507
↓ 7 callers
Function
file_conf_conf_proto_rawDescGZIP
()
doutok-course/basic-knowledge/kratos-intro/myproject/internal/conf/conf.pb.go:507
↓ 7 callers
Function
file_conf_conf_proto_rawDescGZIP
()
kit/transaction/helloworld/internal/conf/conf.pb.go:507
↓ 6 callers
Method
Create
(ctx context.Context, blog *Blog)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/internal/biz/blog.go:22
↓ 6 callers
Method
addHistoryLn
接收历史数据,并换行
dragon/printer.go:289
↓ 5 callers
Method
Decode
(interface{})
storage/mongodb/mongodb.go:51
↓ 5 callers
Method
Error
()
kit/i18n/message.go:26
↓ 5 callers
Method
Ping
(context.Context)
storage/mongodb/mongodb.go:25
↓ 5 callers
Function
appendExperience
增加经验
dragon/main.go:193
↓ 4 callers
Method
FindOne
(context.Context, interface{})
storage/mongodb/mongodb.go:33
↓ 4 callers
Method
Save
(blog *Blog)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/internal/data/model/blog.go:23
↓ 4 callers
Method
readBlogsFromFile
内部函数,不加锁,用于读取CSV文件内容
doutok-course/basic-knowledge/blog-demo/backend/blog-service/internal/data/model/blog.go:56
↓ 3 callers
Method
DB
(ctx context.Context)
kit/transaction/helloworld/pkg/db/db.go:46
↓ 3 callers
Method
Exec
(query string, args ...interface{})
di/no_di/main.go:17
↓ 3 callers
Function
Merge
(s []int, middle int)
concurrence/main.go:58
↓ 3 callers
Method
Reset
()
di/helloworld/internal/conf/conf.pb.go:143
↓ 3 callers
Method
String
()
doutok-course/basic-knowledge/kratos-intro/myproject/internal/conf/conf.pb.go:152
↓ 3 callers
Method
Value
获取计数器值
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:684
↓ 3 callers
Method
attacked
(attackPower int)
dragon/basic.go:14
↓ 3 callers
Method
flush
接收信号,用于刷新数值区
dragon/printer.go:301
↓ 3 callers
Method
get
(stage int)
dragon/npc.go:189
↓ 3 callers
Method
isAlive
()
dragon/basic.go:10
↓ 3 callers
Function
isGameOver
是否游戏结束
dragon/main.go:261
↓ 3 callers
Function
printInfo
打印任何实现了Describer接口的类型信息
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:661
↓ 3 callers
Method
strengthen
(attack, defense, life, experience float64)
dragon/npc.go:12
↓ 2 callers
Method
Collection
(string)
storage/mongodb/mongodb.go:29
↓ 2 callers
Method
CreateBlog
(ctx context.Context, in *CreateBlogRequest, opts ...grpc.CallOption)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog_grpc.pb.go:35
↓ 2 callers
Method
Database
(string)
storage/mongodb/mongodb.go:21
↓ 2 callers
Method
Delete
(ctx context.Context, id string)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/internal/biz/blog.go:24
↓ 2 callers
Method
DeleteBlog
(ctx context.Context, in *DeleteBlogRequest, opts ...grpc.CallOption)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog_grpc.pb.go:37
↓ 2 callers
Method
DeleteOne
(context.Context, interface{})
storage/mongodb/mongodb.go:36
↓ 2 callers
Method
Find
(context.Context, interface{}, ...*options.FindOptions)
storage/mongodb/mongodb.go:37
↓ 2 callers
Method
Get
(ctx context.Context, id string)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/internal/biz/blog.go:21
↓ 2 callers
Method
Get
(id string)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/internal/data/model/blog.go:22
↓ 2 callers
Method
GetBlog
(ctx context.Context, in *GetBlogRequest, opts ...grpc.CallOption)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog_grpc.pb.go:34
↓ 2 callers
Method
InsertOne
(context.Context, interface{})
storage/mongodb/mongodb.go:34
↓ 2 callers
Method
List
(ctx context.Context)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/internal/biz/blog.go:20
↓ 2 callers
Method
ListBlogs
(ctx context.Context, in *ListBlogsRequest, opts ...grpc.CallOption)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog_grpc.pb.go:33
↓ 2 callers
Method
Next
(context.Context)
storage/mongodb/mongodb.go:50
↓ 2 callers
Method
Process
Process 处理偶发事件
dragon/dragon.go:55
↓ 2 callers
Method
String
()
di/helloworld/internal/conf/conf.pb.go:152
↓ 2 callers
Method
Update
(ctx context.Context, id string, blog *Blog)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/internal/biz/blog.go:23
↓ 2 callers
Method
Update
(context.Context, *Greeter)
kit/transaction/helloworld/internal/biz/greeter.go:30
↓ 2 callers
Method
UpdateBlog
(ctx context.Context, in *UpdateBlogRequest, opts ...grpc.CallOption)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog_grpc.pb.go:36
↓ 2 callers
Method
UpdateOne
(context.Context, interface{}, interface{}, ...*options.UpdateOptions)
storage/mongodb/mongodb.go:40
↓ 2 callers
Function
appendLife
增加生命
dragon/main.go:224
↓ 2 callers
Function
channelExamples
=================== 通道示例 ===================
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:204
↓ 2 callers
Function
createTableIfNotExists
(db *sql.DB)
dragon/rank.go:28
↓ 2 callers
Function
divide
演示可能返回错误的函数
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:459
↓ 2 callers
Function
errorHandlingExamples
=================== 错误处理示例 ===================
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:414
↓ 2 callers
Function
file_helloworld_v1_greeter_proto_rawDescGZIP
()
di/helloworld/api/helloworld/v1/greeter.pb.go:154
↓ 2 callers
Function
file_helloworld_v1_greeter_proto_rawDescGZIP
()
doutok-course/basic-knowledge/kratos-intro/myproject/api/helloworld/v1/greeter.pb.go:154
↓ 2 callers
Function
file_helloworld_v1_greeter_proto_rawDescGZIP
()
kit/transaction/helloworld/api/helloworld/v1/greeter.pb.go:154
↓ 2 callers
Function
getInputTurn
()
dragon/main.go:401
↓ 2 callers
Function
getRanks
()
dragon/rank.go:75
↓ 2 callers
Function
iterationExamples
=================== 遍历方法示例 ===================
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:315
↓ 2 callers
Function
mapExamples
=================== 映射示例 ===================
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:147
↓ 2 callers
Function
printArea
打印形状的面积
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:666
↓ 2 callers
Function
randomDecreaseState
随机减少属性
dragon/main.go:329
↓ 2 callers
Function
randomIncreaseState
随机增加属性
dragon/main.go:312
↓ 2 callers
Function
showRank
(ranks []*Rank, rank *Rank)
dragon/rank.go:130
↓ 2 callers
Function
sliceExamples
=================== 切片示例 ===================
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:76
↓ 2 callers
Function
structExamples
=================== 结构体和方法示例 ===================
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:514
↓ 2 callers
Method
writeBlogs
writeBlogs 将博客列表写入CSV文件
doutok-course/basic-knowledge/blog-demo/backend/blog-service/internal/data/model/blog.go:168
↓ 1 callers
Method
Aggregate
(context.Context, interface{})
storage/mongodb/mongodb.go:39
↓ 1 callers
Method
All
(context.Context, interface{})
storage/mongodb/mongodb.go:52
↓ 1 callers
Method
Answer
Answer 处理问题并生成回答
eino_assistant/eino/rag/orchestration.go:31
↓ 1 callers
Method
Area
()
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:622
↓ 1 callers
Method
CountDocuments
(context.Context, interface{}, ...*options.CountOptions)
storage/mongodb/mongodb.go:38
↓ 1 callers
Method
CreateBlog
(context.Context, *CreateBlogRequest)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog_http.pb.go:29
↓ 1 callers
Method
CreateGreeter
CreateGreeter creates a Greeter, and returns the new Greeter.
di/helloworld/internal/biz/greeter.go:43
↓ 1 callers
Method
CreateGreeter
CreateGreeter creates a Greeter, and returns the new Greeter.
doutok-course/basic-knowledge/kratos-intro/myproject/internal/biz/greeter.go:43
↓ 1 callers
Method
CreateGreeter
CreateGreeter creates a Greeter, and returns the new Greeter.
kit/transaction/helloworld/internal/biz/greeter.go:49
↓ 1 callers
Method
Delete
(id string)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/internal/data/model/blog.go:24
↓ 1 callers
Method
DeleteBlog
(context.Context, *DeleteBlogRequest)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog_http.pb.go:30
↓ 1 callers
Method
Description
值接收者方法
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:604
↓ 1 callers
Method
Description
()
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:657
↓ 1 callers
Method
Descriptor
()
di/helloworld/api/helloworld/v1/error_reason.pb.go:52
↓ 1 callers
Method
Descriptor
()
doutok-course/basic-knowledge/kratos-intro/myproject/api/helloworld/v1/error_reason.pb.go:52
↓ 1 callers
Method
Descriptor
()
kit/transaction/helloworld/api/helloworld/v1/error_reason.pb.go:52
↓ 1 callers
Method
Disconnect
(context.Context)
storage/mongodb/mongodb.go:22
↓ 1 callers
Method
Exec
(query string, args ...interface{})
di/wire_di/main.go:11
↓ 1 callers
Method
Exec
(query string, args ...interface{})
di/simple_di/main.go:11
↓ 1 callers
Method
ExecTx
(context.Context, func(ctx context.Context) error)
kit/transaction/helloworld/pkg/db/db.go:33
↓ 1 callers
Method
Fight
Fight 与 NPC 战斗
dragon/dragon.go:23
↓ 1 callers
Method
Foo
()
generics/main.go:7
↓ 1 callers
Function
FormatErr
(err error)
kit/i18n/message.go:66
↓ 1 callers
Method
Generate
(ctx context.Context, query string, documents []*schema.Document)
eino_assistant/eino/rag/generator.go:17
↓ 1 callers
Function
GenerateSlice
GenerateSlice 创建一个包含从 1 到 n 的整数的切片,并随机打乱顺序。
concurrence/main.go:11
↓ 1 callers
Method
Get
()
generics/main.go:11
↓ 1 callers
Method
GetBlog
(context.Context, *GetBlogRequest)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog_http.pb.go:31
↓ 1 callers
Method
GetData
(query string, args ...interface{})
di/wire_di/main.go:24
next →
1–100 of 787, ranked by callers