mirror of
https://github.com/rjNemo/go-wiki
synced 2026-06-06 02:36:40 +00:00
db
This commit is contained in:
parent
b373a368c4
commit
9425dc16f6
1 changed files with 1 additions and 11 deletions
12
main.go
12
main.go
|
|
@ -1,7 +1,6 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
|
|
@ -9,16 +8,7 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
numbers := []int{1, 2, 3, 4, 5, 6, 7, 8}
|
||||
for i, n := range numbers {
|
||||
fmt.Println("Slice item", i, "is", n)
|
||||
}
|
||||
|
||||
countryCapitalMap := map[string]string{"France": "Paris", "Italy": "Rome", "Japan": "Tokyo"}
|
||||
for k, val := range countryCapitalMap {
|
||||
fmt.Println("Capital of", k, "is", val)
|
||||
}
|
||||
// startServer(controller.Port)
|
||||
startServer(controller.Port)
|
||||
}
|
||||
|
||||
func startServer(p string) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue