mirror of
https://github.com/SourceFellows/gobuch.git
synced 2025-08-03 13:12:16 +02:00
initial import
This commit is contained in:
14
best-practices/project-structure/packagename/cmd/main.go
Normal file
14
best-practices/project-structure/packagename/cmd/main.go
Normal file
@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"golang.source-fellows.com/samples/packagename/util"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
util.ParseValue("Hello World")
|
||||
json.Marshal("Hello World")
|
||||
|
||||
}
|
3
best-practices/project-structure/packagename/go.mod
Normal file
3
best-practices/project-structure/packagename/go.mod
Normal file
@ -0,0 +1,3 @@
|
||||
module golang.source-fellows.com/samples/packagename
|
||||
|
||||
go 1.14
|
7
best-practices/project-structure/packagename/util/log.go
Normal file
7
best-practices/project-structure/packagename/util/log.go
Normal file
@ -0,0 +1,7 @@
|
||||
package util
|
||||
|
||||
import "fmt"
|
||||
|
||||
func ParseValue(text string) {
|
||||
fmt.Println(text)
|
||||
}
|
Reference in New Issue
Block a user