mirror of
https://github.com/rjNemo/go-wiki
synced 2026-06-12 13:36:38 +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
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
|
@ -9,16 +8,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
numbers := []int{1, 2, 3, 4, 5, 6, 7, 8}
|
startServer(controller.Port)
|
||||||
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)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func startServer(p string) {
|
func startServer(p string) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue