You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
321 B
20 lines
321 B
package main |
|
|
|
import ( |
|
"flag" |
|
"fmt" |
|
"strconv" |
|
|
|
"github.com/garritfra/blockchain-project/server" |
|
) |
|
|
|
func main() { |
|
portFlag := flag.Int("port", 42000, "The port this service is running on") |
|
flag.Parse() |
|
|
|
var port string |
|
port += ":" |
|
port += strconv.Itoa(*portFlag) |
|
fmt.Println(*portFlag) |
|
server.ServeHTTP(port) |
|
}
|
|
|