The code changes in `aviation_parser_test.go` update the ARR body parsing logic. The `ParseHeader` function now correctly handles ARR bodies with optional time components. This ensures accurate parsing of ARR bodies and improves the overall functionality of the aviation parser.
27 lines
445 B
Go
27 lines
445 B
Go
package main
|
|
|
|
import (
|
|
"caatsm/internal/config"
|
|
"caatsm/internal/nats"
|
|
|
|
"fmt"
|
|
)
|
|
|
|
func main() {
|
|
cfg, err := config.LoadConfig()
|
|
if err != nil {
|
|
fmt.Printf("Error loading configuration: %v\n", err)
|
|
return
|
|
}
|
|
|
|
if err := config.ValidateConfig(cfg); err != nil {
|
|
fmt.Printf("Invalid configuration: %v\n", err)
|
|
return
|
|
}
|
|
|
|
fmt.Println("Loaded configuration successfully")
|
|
|
|
subscribe := nats.NewNatsHandler(cfg)
|
|
subscribe.Subscribe()
|
|
}
|