add: string interface

This commit is contained in:
Inanc Gumus
2019-09-01 21:57:52 +03:00
parent 9bcaae2505
commit fcf5a8a791
8 changed files with 209 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
// For more tutorials: https://blog.learngoprogramming.com
//
// Copyright © 2018 Inanc Gumus
// Learn Go Programming Course
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
//
package main
type game struct {
// game satisfies the fmt.Stringer
// because the product satisfies the fmt.Stringer
product
}