add: type assertion

This commit is contained in:
Inanc Gumus
2019-08-23 17:07:45 +03:00
parent e0b2786fd9
commit 39aed37a88
23 changed files with 291 additions and 48 deletions

View File

@@ -10,9 +10,8 @@ package main
import "fmt"
type book struct {
title string
price money
readTime int
title string
price money
}
func (b book) print() {