How do I get the server address of the exchange when I add a custom exchange? Thank you.

Author: btckingw, Created: 2018-01-15 22:10:07, Updated:

Questions


More

The Little DreamThe address of the general protocol is the service address of the plugin. See the example of the GO language in the tutorial This is the code that displays the Plugin Service address in the plugin: What's up? var addr = flag.String (("b", "127.0.0.1:6666", "bind addr") flag.Parse () if *addr == "" { flag.Usage (s) return I'm not sure. basePath: = "/exchange" Log.Println (("Running", fmt.Sprintf (("http://%s%s", *addr, basePath), "...) What's up?