Add URL resolving to main.go