-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Problem statement
Hi go-swagger team! We're trying to use go-swagger
with viper
to write a command line tool and api server but we can't figure out how to pass custom data (such as a viper
object) into a generated go-swagger
server. Ideally we would be able to pass additional custom parameters into the configureAPI
function. Is there some other mechanism for threading data through to configureAPI(...)
from the program's main entry point?
More specifically we want to be able to use the result of calling:
someCustomConfig := &config.MyConfig{}
myViperInstance.Unmarshal(someCustomConfig)
inside of configureAPI
where myViperInstance
must be constructed in our main.
Metadata
Metadata
Assignees
Labels
No labels