package main
-
-import (
-"fmt"
-)
-
-type City struct {
- Name string
- Population int
-}
-
-functellTale(city1, city2 City) {
- fmt.Printf("There were two cities, %s and %s.\n", city1.Name, city2.Name)
- fmt.Printf("%s had a population of %d.\n", city1.Name, city1.Population)
- fmt.Printf("%s had a population of %d.\n", city2.Name, city2.Population)
- fmt.Println("Their tales were intertwined, and their people shared many adventures.")
-}
-
-funcmain() {
- city1 := City{Name: "CityA", Population: 1000000}
- city2 := City{Name: "CityB", Population: 1200000}
-
-tellTale(city1, city2)
-}packagemain
-
-import(
-"fmt"
-)
-
-typeCitystruct{
-Namestring
-Populationint
-}
-
-functellTale(city1,city2City){
-fmt.Printf("There were two cities, %s and %s.\n",city1.Name,city2.Name)
-fmt.Printf("%s had a population of %d.\n",city1.Name,city1.Population)
-fmt.Printf("%s had a population of %d.\n",city2.Name,city2.Population)
-fmt.Println("Their tales were intertwined, and their people shared many adventures.")
-}
-
-funcmain(){
-city1:=City{Name:"CityA",Population:1000000}
-city2:=City{Name:"CityB",Population:1200000}
-
-tellTale(city1,city2)
-}Cell Toweronline portaldata processorsatellitesTRANSMITTERuistoragesendsendsendphone logsmake callaccessdisplaypersist
-
-
+
package main
-
-import (
-"fmt"
-)
-
-type City struct {
- Name string
- Population int
-}
-
-functellTale(city1, city2 City) {
- fmt.Printf("There were two cities, %s and %s.\n", city1.Name, city2.Name)
- fmt.Printf("%s had a population of %d.\n", city1.Name, city1.Population)
- fmt.Printf("%s had a population of %d.\n", city2.Name, city2.Population)
- fmt.Println("Their tales were intertwined, and their people shared many adventures.")
-}
-
-funcmain() {
- city1 := City{Name: "CityA", Population: 1000000}
- city2 := City{Name: "CityB", Population: 1200000}
-
-tellTale(city1, city2)
-}packagemain
-
-import(
-"fmt"
-)
-
-typeCitystruct{
-Namestring
-Populationint
-}
-
-functellTale(city1,city2City){
-fmt.Printf("There were two cities, %s and %s.\n",city1.Name,city2.Name)
-fmt.Printf("%s had a population of %d.\n",city1.Name,city1.Population)
-fmt.Printf("%s had a population of %d.\n",city2.Name,city2.Population)
-fmt.Println("Their tales were intertwined, and their people shared many adventures.")
-}
-
-funcmain(){
-city1:=City{Name:"CityA",Population:1000000}
-city2:=City{Name:"CityB",Population:1200000}
-
-tellTale(city1,city2)
-}Cell Toweronline portaldata processorsatellitesTRANSMITTERuistoragesendsendsendphone logsmake callaccessdisplaypersist
-
-
+