File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ import (
1717)
1818
1919var (
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.
6362type GetTimeParams struct {
6463 City string `json:"city" jsonschema:"City to get time for (nyc, sf, or boston)"`
You can’t perform that action at this time.
0 commit comments