# Dependencies

Selected choice can create list of dependencies. A dependency can be in different formats depending on the language of selected project structure.

# Dependencies in Golang

If the language of Selected project structure is go or golang then dependencies should be a list of strings. Check table to see which command is executed by gotouch

depedency command
github.com/labstack/echo/v4 go get github.com/labstack/echo/v4@latest
github.com/labstack/echo/v4@v4.9.1 go get github.com/labstack/echo/v4@v4.9.1

# Dependencies in Other Languages

If the language of selected project structure is empty or any other value except go or golang, you can use any format in dependencies. Gotouch merges dependencies of all selected choices and add them as an array to values with Dependencies key so that you can template with dependencies. You can find example templates for different languages.

WARNING

Following examples are just suggestions. Do not forget that you can use any format in dependencies, and you can template them however you want. If the language you use is not in the examples, in this case you can use the examples as a guide.

# Java Maven

In a Maven project, you can define your dependencies as object as seen below.

# JS/Node.js