cyrus reggie

# Go

共 1 篇文章

2024

Go 最佳实践

在 Go 项目架构中,有一些重要的设计原则和规则。我来详细说明: 接口定义规则: // ✅ 正确:接口定义在使用方(调用方)包中 package handler type UserService interface { Create(ctx context.Context, user *User) …

编程, go
20 min