Skip to content

Commit 8e1652c

Browse files
authored
Add structs solution (#167)
2 parents 8388eae + 7ea0358 commit 8e1652c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package structs
2+
3+
type Person struct {
4+
Name string
5+
Age int
6+
}
7+
8+
func NewPerson(name string, age int) Person {
9+
return Person{Name: name, Age: age}
10+
}

0 commit comments

Comments
 (0)