{"id":4269,"date":"2020-11-01T20:23:33","date_gmt":"2020-11-01T14:53:33","guid":{"rendered":"https:\/\/golangbyexamples.com\/?p=4269"},"modified":"2020-11-01T20:23:40","modified_gmt":"2020-11-01T14:53:40","slug":"import-local-module-golang","status":"publish","type":"post","link":"https:\/\/golangbyexamples.com\/import-local-module-golang\/","title":{"rendered":"Importing package from different module locally in Go (Golang)"},"content":{"rendered":"\n

There are cases when we want to import a module which is present locally. Let’s understand how we can import such module. But first, we have to create a module that can be used by others and then import it into the other module. For that let’s create two modules<\/p>\n\n\n\n