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
↓ 1 callers
Method
GetData
(query string, args ...interface{})
di/no_di/main.go:28
↓ 1 callers
Method
GetData
(query string, args ...interface{})
di/simple_di/main.go:24
↓ 1 callers
Function
GetLang
(_ context.Context)
kit/i18n/message.go:62
↓ 1 callers
Method
Increment
递增计数器
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:677
↓ 1 callers
Function
InitRedisIndex
(ctx context.Context, config *Config)
eino_assistant/pkg/redis/redis.go:56
↓ 1 callers
Method
InsertMany
(context.Context, []interface{})
storage/mongodb/mongodb.go:35
↓ 1 callers
Method
List
()
doutok-course/basic-knowledge/blog-demo/backend/blog-service/internal/data/model/blog.go:21
↓ 1 callers
Method
ListBlogs
(context.Context, *ListBlogsRequest)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog_http.pb.go:32
↓ 1 callers
Method
LocalizedID
()
kit/i18n/message.go:40
↓ 1 callers
Function
New
New creates a new MongoDB storage
storage/mongodb/mongodb.go:169
↓ 1 callers
Function
NewApp
(client *MySQLClient)
di/wire_di/main.go:15
↓ 1 callers
Function
NewApp
()
di/no_di/main.go:21
↓ 1 callers
Function
NewApp
(client *MySQLClient)
di/simple_di/main.go:15
↓ 1 callers
Function
NewArkGenerator
NewArkGenerator 创建ARK生成器
eino_assistant/eino/rag/generator.go:28
↓ 1 callers
Function
NewMySQLClient
(url string)
di/wire_di/main.go:3
↓ 1 callers
Function
NewMySQLClient
(url string)
di/no_di/main.go:9
↓ 1 callers
Function
NewMySQLClient
(url string)
di/simple_di/main.go:3
↓ 1 callers
Function
NewNoRetriever
NewNoRetriever 创建一个不使用检索的实现
eino_assistant/eino/rag/retriever.go:92
↓ 1 callers
Function
NewRAG
NewRAG 创建一个新的RAG系统
eino_assistant/eino/rag/orchestration.go:22
↓ 1 callers
Function
NewRedisRetriever
NewRedisRetriever 创建Redis检索器
eino_assistant/eino/rag/retriever.go:30
↓ 1 callers
Function
NewS2
()
generics/main.go:28
↓ 1 callers
Function
NewUserNotFoundErr
(userID int)
kit/i18n/message.go:48
↓ 1 callers
Method
Retrieve
(ctx context.Context, query string, topK int)
eino_assistant/eino/rag/retriever.go:18
↓ 1 callers
Function
RunAllExamples
RunAllExamples 运行所有语法示例
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:10
↓ 1 callers
Function
RunChannelExamples
RunChannelExamples 运行通道示例
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:52
↓ 1 callers
Function
RunErrorHandlingExamples
RunErrorHandlingExamples 运行错误处理示例
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:64
↓ 1 callers
Function
RunIterationExamples
RunIterationExamples 运行遍历方法示例
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:58
↓ 1 callers
Function
RunMapExamples
RunMapExamples 运行映射示例
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:46
↓ 1 callers
Function
RunSliceExamples
RunSliceExamples 运行切片示例
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:40
↓ 1 callers
Function
RunStructExamples
RunStructExamples 运行结构体和方法示例
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:70
↓ 1 callers
Method
Save
(context.Context, *Greeter)
kit/transaction/helloworld/internal/biz/greeter.go:29
↓ 1 callers
Method
SayHello
(context.Context, *HelloRequest)
kit/transaction/helloworld/api/helloworld/v1/greeter_http.pb.go:21
↓ 1 callers
Function
SequentialMergesortV1
(s []int)
concurrence/main.go:48
↓ 1 callers
Method
SetAge
指针接收者方法
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:609
↓ 1 callers
Method
StartSession
()
storage/mongodb/mongodb.go:23
↓ 1 callers
Method
String
()
kit/transaction/helloworld/internal/conf/conf.pb.go:152
↓ 1 callers
Method
TemplateData
()
kit/i18n/message.go:41
↓ 1 callers
Method
UpdateBlog
(context.Context, *UpdateBlogRequest)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog_http.pb.go:33
↓ 1 callers
Method
UpdateMany
(context.Context, interface{}, interface{}, ...*options.UpdateOptions)
storage/mongodb/mongodb.go:41
↓ 1 callers
Method
UseSession
(ctx context.Context, fn func(mongo.SessionContext) error)
storage/mongodb/mongodb.go:24
↓ 1 callers
Function
_Blog_CreateBlog0_HTTP_Handler
(srv BlogHTTPServer)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog_http.pb.go:86
↓ 1 callers
Function
_Blog_DeleteBlog0_HTTP_Handler
(srv BlogHTTPServer)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog_http.pb.go:133
↓ 1 callers
Function
_Blog_GetBlog0_HTTP_Handler
(srv BlogHTTPServer)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog_http.pb.go:64
↓ 1 callers
Function
_Blog_ListBlogs0_HTTP_Handler
(srv BlogHTTPServer)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog_http.pb.go:45
↓ 1 callers
Function
_Blog_UpdateBlog0_HTTP_Handler
(srv BlogHTTPServer)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog_http.pb.go:108
↓ 1 callers
Function
_Greeter_SayHello0_HTTP_Handler
(srv GreeterHTTPServer)
di/helloworld/api/helloworld/v1/greeter_http.pb.go:29
↓ 1 callers
Function
_Greeter_SayHello0_HTTP_Handler
(srv GreeterHTTPServer)
doutok-course/basic-knowledge/kratos-intro/myproject/api/helloworld/v1/greeter_http.pb.go:29
↓ 1 callers
Function
_Greeter_SayHello0_HTTP_Handler
(srv GreeterHTTPServer)
kit/transaction/helloworld/api/helloworld/v1/greeter_http.pb.go:29
↓ 1 callers
Function
add
定义一个简单的函数
doutok-course/basic-knowledge/golang-intro/hello.go:56
↓ 1 callers
Method
addRankLn
接收排行榜数据,并换行
dragon/printer.go:295
↓ 1 callers
Function
channelDirection
演示通道方向限制
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:253
↓ 1 callers
Function
configDefault
Helper function to set default values
storage/mongodb/config.go:57
↓ 1 callers
Function
consumer
只能从通道接收数据
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:277
↓ 1 callers
Function
createDragon
创建龙
dragon/main.go:266
↓ 1 callers
Function
dangerousFunction
可能会引发panic的函数
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:467
↓ 1 callers
Function
deferExample
defer示例
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:475
↓ 1 callers
Function
deleteTodo
(id)
doutok-course/basic-knowledge/react-intro/App.jsx:48
↓ 1 callers
Method
equal
(rank *Rank)
dragon/rank.go:67
↓ 1 callers
Function
file_blog_v1_blog_proto_init
()
doutok-course/basic-knowledge/blog-demo/backend/blog-service/api/blog/v1/blog.pb.go:695
↓ 1 callers
Function
file_conf_conf_proto_init
()
di/helloworld/internal/conf/conf.pb.go:544
↓ 1 callers
Function
file_conf_conf_proto_init
()
doutok-course/basic-knowledge/blog-demo/backend/blog-service/internal/conf/conf.pb.go:544
↓ 1 callers
Function
file_conf_conf_proto_init
()
doutok-course/basic-knowledge/kratos-intro/myproject/internal/conf/conf.pb.go:544
↓ 1 callers
Function
file_conf_conf_proto_init
()
kit/transaction/helloworld/internal/conf/conf.pb.go:544
↓ 1 callers
Function
file_helloworld_v1_error_reason_proto_init
()
di/helloworld/api/helloworld/v1/error_reason.pb.go:113
↓ 1 callers
Function
file_helloworld_v1_error_reason_proto_init
()
doutok-course/basic-knowledge/kratos-intro/myproject/api/helloworld/v1/error_reason.pb.go:113
↓ 1 callers
Function
file_helloworld_v1_error_reason_proto_init
()
kit/transaction/helloworld/api/helloworld/v1/error_reason.pb.go:113
↓ 1 callers
Function
file_helloworld_v1_error_reason_proto_rawDescGZIP
()
di/helloworld/api/helloworld/v1/error_reason.pb.go:93
↓ 1 callers
Function
file_helloworld_v1_error_reason_proto_rawDescGZIP
()
doutok-course/basic-knowledge/kratos-intro/myproject/api/helloworld/v1/error_reason.pb.go:93
↓ 1 callers
Function
file_helloworld_v1_error_reason_proto_rawDescGZIP
()
kit/transaction/helloworld/api/helloworld/v1/error_reason.pb.go:93
↓ 1 callers
Function
file_helloworld_v1_greeter_proto_init
()
di/helloworld/api/helloworld/v1/greeter.pb.go:177
↓ 1 callers
Function
file_helloworld_v1_greeter_proto_init
()
doutok-course/basic-knowledge/kratos-intro/myproject/api/helloworld/v1/greeter.pb.go:177
↓ 1 callers
Function
file_helloworld_v1_greeter_proto_init
()
kit/transaction/helloworld/api/helloworld/v1/greeter.pb.go:177
↓ 1 callers
Function
handleAdvance
修为进阶
dragon/main.go:234
↓ 1 callers
Function
indexMarkdownFiles
(ctx context.Context, dir string)
eino_assistant/cmd/knowledgeindexing/main.go:51
↓ 1 callers
Function
initLogger
()
dragon/logger.go:10
↓ 1 callers
Function
initNPCs
初始化NPC列表,每一级别可以通过添加的NPC的数量控制遇到NPC的频率
dragon/npc.go:200
↓ 1 callers
Function
newApp
(logger log.Logger, gs *grpc.Server, hs *http.Server)
di/helloworld/cmd/helloworld/main.go:36
↓ 1 callers
Function
newApp
(logger log.Logger, gs *grpc.Server, hs *http.Server)
doutok-course/basic-knowledge/blog-demo/backend/blog-service/cmd/blog-service/main.go:36
↓ 1 callers
Function
newApp
(logger log.Logger, gs *grpc.Server, hs *http.Server)
doutok-course/basic-knowledge/kratos-intro/myproject/cmd/myproject/main.go:36
↓ 1 callers
Function
newApp
(logger log.Logger, gs *grpc.Server, hs *http.Server)
kit/transaction/helloworld/cmd/helloworld/main.go:36
↓ 1 callers
Function
newDocumentTransformer
newDocumentTransformer component initialization function of node 'MarkdownSplitter' in graph 'KnowledgeIndexing'
eino_assistant/eino/knowledgeindexing/transformer.go:11
↓ 1 callers
Function
newEmbedding
(ctx context.Context)
eino_assistant/eino/knowledgeindexing/embedding.go:11
↓ 1 callers
Function
newEmbedding
重用嵌入模型创建函数
eino_assistant/eino/rag/orchestration.go:123
↓ 1 callers
Function
newIndexer
newIndexer component initialization function of node 'RedisIndexer' in graph 'KnowledgeIndexing'
eino_assistant/eino/knowledgeindexing/indexer.go:27
↓ 1 callers
Function
newLoader
newLoader component initialization function of node 'FileLoader' in graph 'KnowledgeIndexing'
eino_assistant/eino/knowledgeindexing/loader.go:11
↓ 1 callers
Function
newNPCIndex
()
dragon/npc.go:173
↓ 1 callers
Function
newPrinter
()
dragon/printer.go:65
↓ 1 callers
Function
newRank
(d *Dragon)
dragon/rank.go:119
↓ 1 callers
Function
newRankInfo
(info string, options ...text.WriteOption)
dragon/printer.go:39
↓ 1 callers
Function
openFile
模拟文件打开和关闭
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:494
↓ 1 callers
Method
parseSearchResults
辅助函数:解析Redis搜索结果
eino_assistant/eino/rag/retriever.go:102
↓ 1 callers
Function
producer
只能向通道发送数据
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:267
↓ 1 callers
Method
receiveHistory
接收历史数据处理方法
dragon/printer.go:255
↓ 1 callers
Method
receiveOperateHint
接收操作提示后的处理方法
dragon/printer.go:244
↓ 1 callers
Method
receiveRank
接收排行榜数据处理方法
dragon/printer.go:267
↓ 1 callers
Function
runSyntaxExamples
运行语法示例的函数
doutok-course/basic-knowledge/golang-intro/hello.go:61
↓ 1 callers
Method
save
()
dragon/rank.go:44
↓ 1 callers
Function
selectExample
select示例
doutok-course/basic-knowledge/golang-intro/syntax_examples.go:285
↓ 1 callers
Method
setDragon
(d *Dragon)
dragon/printer.go:239
↓ 1 callers
Function
toAdventure
外出冒险
dragon/main.go:364
← previous
next →
101–200 of 787, ranked by callers