MCPcopy Create free account

hub / github.com/bigwhite/publication / functions

Functions3,647 in github.com/bigwhite/publication

↓ 3 callersMethodValidate
Validate 验证URL格式
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/parser/parser.go:24
↓ 3 callersFunctionbenchmarkOffsetPaging
场景一:Offset 分页 (LIMIT N, 10) 随着 N 增大,性能会急剧下降
micro-column/sql-query-internals/ch06/main_test.go:72
↓ 3 callersFunctionbenchmarkSeekPaging
场景二:Seek 分页 (WHERE id > last_id LIMIT 10) 无论 last_id 是多少,性能应该保持稳定
micro-column/sql-query-internals/ch06/main_test.go:92
↓ 3 callersFunctioncheck
(err error)
column/imooc/go-50tips/sources/go-if-error-check-optimize-2.go:9
↓ 3 callersFunctionconcat
(sep string, args ...interface{})
column/imooc/go-50tips/sources/variadic_function_5.go:8
↓ 3 callersFunctionconcat
(a, b int)
column/imooc/go-50tips/sources/variadic_function_4.go:8
↓ 3 callersFunctionexpensiveTestContextSetup
()
column/imooc/go-50tips/sources/benchmark_with_expensive_context_setup_test.go:19
↓ 3 callersFunctionf
()
column/imooc/go-50tips/sources/evaluation_order_2.go:13
↓ 3 callersFunctionfakeWeatherServer
(name string)
column/imooc/go-50tips/sources/go-concurrency-pattern-11.go:43
↓ 3 callersFunctionfakeWeatherServer
(name string, interval int)
column/imooc/go-50tips/sources/go-concurrency-pattern-12.go:59
↓ 3 callersFunctionfakeWeatherServer
(name string)
column/imooc/go-50tips/sources/go-concurrency-pattern-10.go:36
↓ 3 callersMethodfoo
(x *X)
column/imooc/go-50tips/sources/go-panic-stacktrace.go:22
↓ 3 callersFunctiongetBoolEnv
getBoolEnv 获取布尔环境变量
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/config/types.go:83
↓ 3 callersMethodlastLogTerm
()
micro-column/distributed-system-guide/ch11/raft.go:116
↓ 3 callersFunctionmakeRandomInts
https://github.com/golang/exp/blob/master/slices/sort_benchmark_test.go
column/timegeek/go-first-course/go-generics/benchmark/sort_benchmark_test.go:14
↓ 3 callersFunctionnewAirportSecurityCheckChannel
(id string, queue <-chan struct{})
column/imooc/go-50tips/sources/concurrency-design-airport-securitycheck-3.go:53
↓ 3 callersMethodnewWorker
(i int)
column/timegeek/go-first-course/35/workerpool2/pool.go:71
↓ 3 callersFunctionpartialTimes
(x int)
column/imooc/go-50tips/sources/function_as_first_class_citizen_4.go:9
↓ 3 callersFunctionpreview
preview 是一个辅助函数,用于截断长字符串以便日志记录
column/timegeek/go-advanced-course/ch21/demo2/shortlink/internal/api/http/handler/handler.go:44
↓ 3 callersFunctionprintList
(head *ListNode)
micro-column/ai-era-software-engineer-algorithm-map/ch04/merge_sorted_lists/main.go:39
↓ 3 callersFunctionrunInsert
(b *testing.B, tableName string, useUUID bool)
micro-column/sql-query-internals/ch07/main_test.go:85
↓ 3 callersFunctionrunPerformanceTest
运行性能测试
column/timegeek/build-agent-harness-from-scratch/ch21/go-tiny-claw/workspace/benchmark.go:61
↓ 3 callersFunctionsetUp
(testName string)
column/imooc/go-50tips/sources/classic_package_level_testfixture_test.go:8
↓ 3 callersFunctionsetUp
(testName string)
column/imooc/go-50tips/sources/classic_testfixture_test.go:8
↓ 3 callersFunctionstart
(id string, f func(string) int, next chan<- struct{})
column/imooc/go-50tips/sources/concurrency-design-airport-securitycheck-3.go:29
↓ 3 callersFunctionstart
(id int, f func(int) int, queue <-chan struct{})
column/imooc/go-50tips/sources/concurrency-design-airport-securitycheck-2.go:41
↓ 3 callersFunctionv
()
column/imooc/go-50tips/sources/evaluation_order_5.go:21
↓ 2 callersFunctionAdd
Add 函数将两个整数相加并返回结果
column/timegeek/go-first-course/go-testing/coverage/demo.go:4
↓ 2 callersMethodAdd
(tx TCCSubTransaction)
micro-column/distributed-system-guide/ch08/tcc.go:64
↓ 2 callersMethodAdd
Add 添加权限
micro-column/ai-era-software-engineer-algorithm-map/ch13/permission_system/main.go:43
↓ 2 callersMethodAddNode
AddNode adds a physical node to the ring
micro-column/distributed-system-guide/ch06/main.go:33
↓ 2 callersMethodAnalyzeAndInject
AnalyzeAndInject 接收原始报错,匹配已知特征模式,返回增强后的报错信息
column/timegeek/build-agent-harness-from-scratch/ch21/go-tiny-claw/internal/context/recovery.go:17
↓ 2 callersMethodAnalyzeAndInject
AnalyzeAndInject 接收原始报错,匹配已知特征模式,返回增强后的报错信息
column/timegeek/build-agent-harness-from-scratch/ch19/go-tiny-claw/internal/context/recovery.go:17
↓ 2 callersMethodAnalyzeAndInject
AnalyzeAndInject 接收原始报错,匹配已知特征模式,返回增强后的报错信息
column/timegeek/build-agent-harness-from-scratch/ch17/go-tiny-claw/internal/context/recovery.go:17
↓ 2 callersMethodAnalyzeAndInject
AnalyzeAndInject 接收原始报错,匹配已知特征模式,返回增强后的报错信息
column/timegeek/build-agent-harness-from-scratch/ch22/go-tiny-claw/internal/context/recovery.go:17
↓ 2 callersMethodAnalyzeAndInject
AnalyzeAndInject 接收原始报错,匹配已知特征模式,返回增强后的报错信息
column/timegeek/build-agent-harness-from-scratch/ch20/go-tiny-claw/internal/context/recovery.go:17
↓ 2 callersMethodAnalyzeAndInject
AnalyzeAndInject 接收原始报错,匹配已知特征模式,返回增强后的报错信息
column/timegeek/build-agent-harness-from-scratch/ch18/go-tiny-claw/internal/context/recovery.go:17
↓ 2 callersMethodAppend
Append 添加字符,如果是第一个窗口则初始化
micro-column/ai-era-software-engineer-algorithm-map/ch12/sensitive_filter/main.go:32
↓ 2 callersMethodClose
()
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/converter/types.go:106
↓ 2 callersMethodCompact
(msgs []schema.Message)
column/timegeek/build-agent-harness-from-scratch/ch21/go-tiny-claw/internal/context/compactor.go:22
↓ 2 callersMethodCompact
(msgs []schema.Message)
column/timegeek/build-agent-harness-from-scratch/ch19/go-tiny-claw/internal/context/compactor.go:22
↓ 2 callersMethodCompact
(msgs []schema.Message)
column/timegeek/build-agent-harness-from-scratch/ch17/go-tiny-claw/internal/context/compactor.go:22
↓ 2 callersMethodCompact
(msgs []schema.Message)
column/timegeek/build-agent-harness-from-scratch/ch22/go-tiny-claw/internal/context/compactor.go:22
↓ 2 callersMethodCompact
(msgs []schema.Message)
column/timegeek/build-agent-harness-from-scratch/ch20/go-tiny-claw/internal/context/compactor.go:22
↓ 2 callersMethodCompact
(msgs []schema.Message)
column/timegeek/build-agent-harness-from-scratch/ch18/go-tiny-claw/internal/context/compactor.go:22
↓ 2 callersMethodComposeAndSend
(subject, sender string, destinations []string, body string)
column/imooc/go-50tips/sources/stubtest3/mailclient.go:20
↓ 2 callersMethodComposeAndSend
(subject string, sender string, destinations []string, body string)
column/imooc/go-50tips/sources/mocktest/mailclient.go:20
↓ 2 callersMethodComposeAndSend
(subject, sender string, destinations []string, body string)
column/imooc/go-50tips/sources/stubtest2/mailclient.go:20
↓ 2 callersMethodComposeAndSend
(subject string, destinations []string, body string)
column/imooc/go-50tips/sources/faketest1/mailclient.go:18
↓ 2 callersFunctionConcurrentShutdown
(waitTimeout time.Duration, shutdowners ...GracefullyShutdowner)
column/imooc/go-50tips/sources/go-concurrency-pattern-7.go:19
↓ 2 callersFunctionConstructQueryStmt
(obj interface{})
column/imooc/go-50tips/sources/go-reflect/construct_sql_query_stmt.go:11
↓ 2 callersFunctionConstructor
()
micro-column/ai-era-software-engineer-algorithm-map/ch08/serialize_deserialize/main.go:18
↓ 2 callersMethodCreateLink
CreateLink 创建一个新的短链接
micro-column/go-testing-journey/go-testing-shortlink/pkg/service/shortener.go:45
↓ 2 callersMethodCreateUserAndNotify
(id, email, name string)
column/timegeek/go-advanced-course/ch25/doubles/fakes/notifier.go:24
↓ 2 callersMethodDecode
(pktBody []byte)
column/timegeek/go-first-course/38/tcp-server-demo3/packet/packet.go:60
↓ 2 callersMethodDecode
(pktBody []byte)
column/timegeek/go-first-course/38/tcp-server-demo2-with-pprof/packet/packet.go:60
↓ 2 callersMethodDecode
(pktBody []byte)
column/timegeek/go-first-course/38/tcp-server-demo3-with-syncpool/packet/packet.go:61
↓ 2 callersMethodDecode
(pktBody []byte)
column/timegeek/go-first-course/38/tcp-server-demo2/packet/packet.go:60
↓ 2 callersMethodDecode
(pktBody []byte)
column/timegeek/go-first-course/37/tcp-server-demo1/packet/packet.go:60
↓ 2 callersMethodFind
Find 查找老大(带路径压缩)
micro-column/ai-era-software-engineer-algorithm-map/ch09/provinces/main.go:20
↓ 2 callersMethodFindByCode
(ctx context.Context, code string)
micro-column/go-testing-journey/go-testing-shortlink/pkg/repository/link.go:21
↓ 2 callersMethodFindMedian
()
micro-column/ai-era-software-engineer-algorithm-map/ch06/median_finder/main.go:61
↓ 2 callersMethodGenerateShortCode
GenerateShortCode 为给定的输入(通常是长URL)生成一个短码。 - ctx: 用于传递超时或取消信号,例如ID生成依赖外部服务时。 - input: 用于生成短码的原始数据,通常是长URL。 - 返回生成的短码和可能的错误(如生成超时、内部错误等)。
column/timegeek/go-advanced-course/ch21/demo2/shortlink/internal/idgen/interface.go:15
↓ 2 callersMethodGet
(id int)
column/timegeek/go-first-course/go-testing/testdouble/mock/db/db.go:6
↓ 2 callersFunctionGetByPath
GetByPath retrieves a configuration value by a dot-separated path. This is a simplified example using reflection and has performance implications.
column/timegeek/go-advanced-course/ch23/config/stage2/config/config.go:47
↓ 2 callersFunctionGetByPathFromIndex
GetByPathFromIndex retrieves a value from the pre-built index.
column/timegeek/go-advanced-course/ch23/config/stage3/config/config.go:85
↓ 2 callersFunctionGetEnvironment
GetEnvironment 获取环境变量
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/config/types.go:73
↓ 2 callersFunctionGetInstance
(id int)
column/imooc/go-50tips/sources/go-sync-package-6.go:15
↓ 2 callersMethodGetOrCreate
(id string, workDir string)
column/timegeek/build-agent-harness-from-scratch/ch22/go-tiny-claw/internal/context/session.go:77
↓ 2 callersMethodGetOrCreate
(id string, workDir string)
column/timegeek/build-agent-harness-from-scratch/ch11/go-tiny-claw/internal/context/session.go:72
↓ 2 callersMethodGetOriginalURL
GetOriginalURL 根据短码查找并返回原始长链接及其相关信息。 如果短码不存在或已过期,应返回 store.ErrNotFound。 此方法也可能负责增加访问计数。
column/timegeek/go-advanced-course/ch32/shortlink-service/internal/service/shortener_service.go:67
↓ 2 callersMethodGetUser
(id string)
column/timegeek/go-advanced-course/ch25/testhierarchy/user_service.go:31
↓ 2 callersFunctionGetWeatherAdvice
(provider WeatherProvider, city string)
column/timegeek/go-advanced-course/ch25/doubles/stubs/weather.go:9
↓ 2 callersMethodHas
Has 检查是否拥有某权限
micro-column/ai-era-software-engineer-algorithm-map/ch13/permission_system/main.go:37
↓ 2 callersMethodIncrementVisitCount
(ctx context.Context, shortCode string)
column/timegeek/go-advanced-course/ch21/demo2/shortlink/internal/storage/interface.go:23
↓ 2 callersMethodInsert
Insert 插入单词
micro-column/ai-era-software-engineer-algorithm-map/ch16/trie/main.go:23
↓ 2 callersMethodIsLeaf
IsLeaf 判断是否为叶子节点
micro-column/data-compression-fundamentals/ch02/huffman-demo/tree/node.go:14
↓ 2 callersMethodLen
()
micro-column/ai-era-software-engineer-algorithm-map/ch06/delay_scheduler/main.go:21
↓ 2 callersMethodLoadFromEnv
LoadFromEnv 从环境变量加载配置
column/timegeek/ai-native-dev-workflow/my-issue2md-project/internal/config/types.go:60
↓ 2 callersMethodLocalEvent
()
micro-column/distributed-system-guide/ch05/main.go:79
↓ 2 callersMethodLogger
Logger provides access to the app's logger.
column/timegeek/go-advanced-course/ch22/app-skeleton-demo/internal/appcore/app.go:79
↓ 2 callersMethodM1
()
column/imooc/go-50tips/sources/method_set_8.go:20
↓ 2 callersMethodM1
()
column/imooc/go-50tips/sources/method_set_11.go:9
↓ 2 callersMethodM2
()
column/imooc/go-50tips/sources/method_set_8.go:21
↓ 2 callersMethodM2
()
column/imooc/go-50tips/sources/method_set_11.go:10
↓ 2 callersFunctionNew
(mlr mailer.Mailer)
column/imooc/go-50tips/sources/mocktest/mailclient.go:12
↓ 2 callersFunctionNewFakeUserNotifier
()
column/timegeek/go-advanced-course/ch25/doubles/fakes/notifier_test.go:15
↓ 2 callersFunctionNewFinishedHouse
(options ...Option)
column/imooc/go-50tips/sources/variadic_function_9.go:14
↓ 2 callersFunctionNewFinishedHouse
(options *Options)
column/imooc/go-50tips/sources/variadic_function_8.go:19
↓ 2 callersFunctionNewGCounter
(id string, nodeIDs []string)
micro-column/distributed-system-guide/ch13/main.go:15
↓ 2 callersFunctionNewImportantOperationService
(audit AuditService)
column/timegeek/go-advanced-course/ch25/doubles/mocks/audit.go:19
↓ 2 callersFunctionNewNode
(id string, peers []string)
micro-column/distributed-system-guide/ch05/main.go:71
↓ 2 callersFunctionNewNode
()
micro-column/ai-era-software-engineer-algorithm-map/ch16/autocomplete_system/main.go:20
↓ 2 callersFunctionNewRollingHash
(windowLen int)
micro-column/ai-era-software-engineer-algorithm-map/ch12/sensitive_filter/main.go:16
↓ 2 callersFunctionNewTrieNode
()
micro-column/ai-era-software-engineer-algorithm-map/ch16/trie/main.go:10
↓ 2 callersFunctionNewUserCreationService
(notifier UserNotifier)
column/timegeek/go-advanced-course/ch25/doubles/fakes/notifier.go:20
↓ 2 callersMethodPT1M3
()
column/imooc/go-50tips/sources/method_set_10.go:7
↓ 2 callersMethodPT2M3
()
column/imooc/go-50tips/sources/method_set_10.go:13
↓ 2 callersMethodPerformImportantAction
(userID string, data string)
column/timegeek/go-advanced-course/ch25/doubles/mocks/audit.go:23
↓ 2 callersMethodPop
()
micro-column/ai-era-software-engineer-algorithm-map/ch06/median_finder/main.go:15
← previousnext →201–300 of 3,647, ranked by callers