refactor: organize exercises and questions for the 5th section

This commit is contained in:
Inanc Gumus
2018-10-22 21:15:08 +03:00
parent fae3ab32d9
commit b295f11ae9
4 changed files with 1 additions and 25 deletions

View File

@ -0,0 +1,18 @@
// 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
import (
"fmt" // You should replace this with your username
"github.com/inancgumus/learngo/05-write-your-first-library-package/printer-exercise/solution/golang"
)
func main() {
fmt.Println(golang.Version())
}

View File

@ -0,0 +1,17 @@
// 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 golang
import (
"runtime"
)
// Version returns the current Go version
func Version() string {
return runtime.Version()
}