Formatting fixes
This commit is contained in:
parent
7052a77836
commit
f2c200bd7b
@ -61,7 +61,7 @@ import "fmt"
|
|||||||
type Person struct { name, sign, disposition string }
|
type Person struct { name, sign, disposition string }
|
||||||
|
|
||||||
func (p Person) GetDisposition() string {
|
func (p Person) GetDisposition() string {
|
||||||
return p.disposition;
|
return p.disposition;
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Person) AlterDisposition (weather string) {
|
func (p *Person) AlterDisposition (weather string) {
|
||||||
@ -76,10 +76,10 @@ func (p *Person) AlterDisposition (weather string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
var p Person = Person{ "Jake", "Sagittarius", "happy" }
|
var p Person = Person{ "Jake", "Sagittarius", "happy" }
|
||||||
fmt.Println(p.GetDisposition());
|
fmt.Println(p.GetDisposition());
|
||||||
p.AlterDisposition("rainy")
|
p.AlterDisposition("rainy")
|
||||||
fmt.Println(p.GetDisposition());
|
fmt.Println(p.GetDisposition());
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user