Skip to content

Commit 391a32e

Browse files
committed
Format.
1 parent ff8dcdd commit 391a32e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/http/main.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import (
1717
)
1818

1919
var (
20-
host = flag.String("host", "localhost", "host to connect to/listen on")
21-
port = flag.Int("port", 8000, "port number to connect to/listen on")
20+
host = flag.String("host", "localhost", "host to connect to/listen on")
21+
port = flag.Int("port", 8000, "port number to connect to/listen on")
2222
proto = flag.String("proto", "http", "if set, use as proto:// part of URL (ignored for server)")
2323
)
2424

@@ -46,7 +46,7 @@ func main() {
4646

4747
switch mode {
4848
case "server":
49-
if (*proto != "http") {
49+
if *proto != "http" {
5050
log.Fatalf("Server only works with 'http' (you passed proto=%s)", *proto)
5151
}
5252
runServer(fmt.Sprintf("%s:%d", *host, *port))
@@ -58,7 +58,6 @@ func main() {
5858
}
5959
}
6060

61-
6261
// GetTimeParams defines the parameters for the cityTime tool.
6362
type GetTimeParams struct {
6463
City string `json:"city" jsonschema:"City to get time for (nyc, sf, or boston)"`

0 commit comments

Comments
 (0)