HybridStrategy 混合策略 结合多种策略的优点
| 294 | // HybridStrategy 混合策略 |
| 295 | // 结合多种策略的优点 |
| 296 | type HybridStrategy struct { |
| 297 | strategies []CompressionStrategy |
| 298 | weights []float64 |
| 299 | } |
| 300 | |
| 301 | // NewHybridStrategy 创建混合策略 |
| 302 | func NewHybridStrategy(strategies []CompressionStrategy, weights []float64) *HybridStrategy { |
nothing calls this directly
no outgoing calls
no test coverage detected