Golang Project Structure – Getting Started with Golang



Golang Project Structure – Getting Started with Golang

Golang Project Structure - Getting Started with Golang

In this Getting Started with Golang, we will learn how to structure a Golang projects directory that capable of handling multiple local packages and how to import this local packages into Golang programming language with step by step guide.

#MaharlikansCode
#GolangProjectStructure
#Golang
#LifeAsSoftwareDeveloper
#Maharlikans
#FilipinoSoftwareDeveloper

If you go with extra mile for buying me a cup of coffee, I appreciate it guys: https://ko-fi.com/maharlikanscode

Source Codes:
main.go:
package main

import (
“fmt”
“goprj/helpers”
)

func main() {
fmt.Println(“Hello World”)
s := helpers.HelloFunc(“hello Maharlikans coders!”)
fmt.Println(“s: “, s)
}

helpers local package:
// Package helpers is the test helper information about this helpers package.
package helpers

func init() {

}

// HelloFunc hello func funtion
func HelloFunc(str string) string {
return str
}

Comments are closed.