- 在 sqrt_test.go 中添加了 fastSqr1 测试函数,用于测试事件驱动模型 - 新增了 Event 和 Uint32AsyncEvent 类型用于测试 - 更新了 go.work、go.mod 和
19 lines
230 B
Go
19 lines
230 B
Go
package prices
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type ServiceImpl struct {
|
|
}
|
|
|
|
func NewService() ServiceImpl {
|
|
result := ServiceImpl{}
|
|
|
|
return result
|
|
}
|
|
|
|
func (s *ServiceImpl) GetPricesForProduct(ctx context.Context, productID string) {
|
|
|
|
}
|