- `PPROF_ENABLED=no` - `PPROF_BLOCK_PROFILE_RATE=0` - `PPROF_MUTEX_PROFILE_RATE=0` - `PPROF_HTTP_SERVER_ADDRESS=":6060"`
8 lines
172 B
Go
8 lines
172 B
Go
package httpserver
|
|
|
|
// GetAddress obtains the address the HTTP server is listening on.
|
|
func (s *Server) GetAddress() (address string) {
|
|
<-s.addressSet
|
|
return s.address
|
|
}
|