---
title: "Comment by Amal Shaji on \"RESTful APIs using Golang and Gorilla Mux for beginners\" | Hashnode"
description: "Why create a workspace under GOPATH/src when you can use Go Modules?"
url: "https://hashnode.com/posts/restful-apis-using-golang-and-gorilla-mux-for-beginners/6013e43a13f0a55761bdc2be/comment/60156436e54673573b571b1b"
---

[Discussion](https://hashnode.com/posts/restful-apis-using-golang-and-gorilla-mux-for-beginners/6013e43a13f0a55761bdc2be)

Comment [RESTful APIs using Golang and Gorilla Mux for beginners](https://hashnode.com/posts/restful-apis-using-golang-and-gorilla-mux-for-beginners/6013e43a13f0a55761bdc2be)

[Amal Shaji](https://hashnode.com/@amal)

[Jan 30, 2021](https://hashnode.com/posts/restful-apis-using-golang-and-gorilla-mux-for-beginners/6013e43a13f0a55761bdc2be/comment/60156436e54673573b571b1b)

Why create a workspace under GOPATH/src when you can use Go Modules?

[Shubham Waje](https://hashnode.com/@wajeshubham)

[Jan 30, 2021](https://hashnode.com/posts/restful-apis-using-golang-and-gorilla-mux-for-beginners/6013e43a13f0a55761bdc2be/comment/60156436e54673573b571b1b#reply-60157949e54673573b571cc2)

I wasn't planning to add any project structure as this was a basic project. So, I went with GOPATH instead of Go modules.

But yes, you are right! modules are dramatically faster than GOPATH, and one should always consider them over GOPATH. Thank you for addressing.
