Initial commit
This commit is contained in:
15
05-write-your-first-library-package/printer/cmd/main.go
Normal file
15
05-write-your-first-library-package/printer/cmd/main.go
Normal file
@ -0,0 +1,15 @@
|
||||
// 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
|
||||
|
||||
// Automatically imports!... AWESOME!
|
||||
import "github.com/inancgumus/learngo/05-write-your-first-library-package/printer"
|
||||
|
||||
func main() {
|
||||
printer.Hello()
|
||||
}
|
15
05-write-your-first-library-package/printer/printer.go
Normal file
15
05-write-your-first-library-package/printer/printer.go
Normal file
@ -0,0 +1,15 @@
|
||||
// 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 printer
|
||||
|
||||
import "fmt"
|
||||
|
||||
// Hello is an exported function
|
||||
func Hello() {
|
||||
fmt.Println("exported hello")
|
||||
}
|
Reference in New Issue
Block a user