refactor: organize exercises and questions for the 5th section
This commit is contained in:
@ -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())
|
||||
}
|
@ -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()
|
||||
}
|
Reference in New Issue
Block a user