1 parent 8388eae commit 7ea0358Copy full SHA for 7ea0358
1 file changed
internal/exercises/solutions/19_structs/structs.go
@@ -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