Tuesday, April 19, 2016

"Hello World!" in GoLang with Maven

if you have installed maven on your machine and would like to try GoLang then now it is possible in just two terminal lines:
$ mvn archetype:generate -B -DarchetypeGroupId=com.igormaznitsa -DarchetypeArtifactId=mvn-golang-hello -DarchetypeVersion=2.0.0 -DgroupId=com.go.test -DartifactId=gohello -Dversion=1.0-SNAPSHOT
$ mvn -f ./gohello/pom.xml package
The First line creates a simple GoLang project from a maven archetype, the project is based on usage of the mvn-golang-wrapper, and the second one build and run the project.

No comments:

Post a Comment