Create your package

vi go.mod
------
module <package_name>
    
go <go_version>
    	
vi main.go
-----
package main
import ("fmt")

func main() {
	fmt.Println("Hello World")
}

Add dependencies

vi go.mod
-------

require (
 "dependency_name"
)