(scheme, host string, port int)
| 64 | } |
| 65 | |
| 66 | func (a *App) SetAddress(scheme, host string, port int) { |
| 67 | a.Scheme = scheme |
| 68 | a.Host = host |
| 69 | a.Port = port |
| 70 | |
| 71 | if a.Port == 0 { |
| 72 | a.address = host |
| 73 | } else { |
| 74 | a.address = fmt.Sprintf("%s:%d", a.Host, a.Port) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | func (a *App) Address() string { |
| 79 | if a.Port == 0 { |