I think it might be hard to implement this using only the standard library's flag package. If you want to enable users to pass multiple protocols with custom configurations, it would be better to use a CLI framework like Cobra.
While I can generate flags like --tcp-timeout for every protocol, the command structure will quickly become unreadable without a proper tree structure for the commands
I think it might be hard to implement this using only the standard library's flag package. If you want to enable users to pass multiple protocols with custom configurations, it would be better to use a CLI framework like Cobra.
While I can generate flags like --tcp-timeout for every protocol, the command structure will quickly become unreadable without a proper tree structure for the commands