Files
go-caatsm/internal/adapter/parser/provider.go
T

13 lines
354 B
Go
Raw Normal View History

package parser
import (
2025-12-24 17:23:41 +08:00
"caatsm/internal/adapter/parser/aviation"
"caatsm/internal/port"
)
2025-12-24 17:23:41 +08:00
// ProvideParser creates a composite parser instance that combines weather and aviation parsers.
func ProvideParser(weatherParser port.WeatherParser) Parser {
2025-12-24 17:23:41 +08:00
aviationParser := aviation.NewParser()
return NewCompositeParser(aviationParser, weatherParser)
}