<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gomodules Archives | Clever Cloud</title>
	<atom:link href="https://www.clever.cloud/blog/tag/gomodules/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.clever.cloud/blog/tag/gomodules/</link>
	<description>From Code to Product</description>
	<lastBuildDate>Tue, 01 Oct 2019 16:39:00 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://cdn.clever-cloud.com/uploads/2023/03/cropped-cropped-favicon-32x32.png</url>
	<title>gomodules Archives | Clever Cloud</title>
	<link>https://www.clever.cloud/blog/tag/gomodules/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Build your Golang code with Go Modules</title>
		<link>https://www.clever.cloud/blog/features/2019/10/01/announcing-go-modules/</link>
		
		<dc:creator><![CDATA[Laurent Doguin]]></dc:creator>
		<pubDate>Tue, 01 Oct 2019 16:39:00 +0000</pubDate>
				<category><![CDATA[Features]]></category>
		<category><![CDATA[golang]]></category>
		<category><![CDATA[gomodules]]></category>
		<guid isPermaLink="false">https://www2.cleverapps.io/wp/blog/technology/2019/10/01/announcing-go-modules/</guid>

					<description><![CDATA[<p><img width="1400" height="540" src="https://cdn.clever-cloud.com/uploads/2021/08/go-modules-1.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="go modules 1" decoding="async" fetchpriority="high" srcset="https://cdn.clever-cloud.com/uploads/2021/08/go-modules-1.png 1400w, https://cdn.clever-cloud.com/uploads/2021/08/go-modules-1-300x116.png 300w, https://cdn.clever-cloud.com/uploads/2021/08/go-modules-1-1024x395.png 1024w, https://cdn.clever-cloud.com/uploads/2021/08/go-modules-1-768x296.png 768w, https://cdn.clever-cloud.com/uploads/2021/08/go-modules-1-1368x528.png 1368w" sizes="(max-width: 1400px) 100vw, 1400px" /></p><p>You can now build your go projects with go modules! Please take a look at our <a href="https://www.clever.cloud/developers/go/go/#build-the-application">Go modules documentation</a>.</p>
<span id="more-2963"></span>

<p>At the begining of Go&#39;s adoption, the build tools available were <code>goinstall</code> and then <code>go get</code>. It worked simply, but versioning was not managed. Developers started vendoring libs, it started to be a bit messy. The Go community addressed this problem with different third-party builds and dependencies management tools. And then came the official answer from the Go team: <a href="https://blog.golang.org/using-go-modules">Go Modules</a>. And we support it on Clever Cloud \o/.</p>
<h2 id="how-to-deploy">How to Deploy</h2>
<p>The default build tool is still go get. So to choose go modules you will need the following environment variable: <code>CC_GO_BUILD_TOOL=gomod</code></p>
<p>Please make sure your <code>go.mod</code> file is at the root of your repository alongside <code>main.go</code>. If you have a different entrypoint you can specify it with the environment variable <code>CC_GO_PKG=./path/to/entrypoint.go</code></p>
<p>If you follow those two advices, everything should go well and you will have your deployed go application on Clever Cloud. We hope you will enjoy using it. Please let us know if you have any other suggestions to make our golang support better.</p>
<p>Happy coding!</p>
]]></description>
										<content:encoded><![CDATA[<p><img width="1400" height="540" src="https://cdn.clever-cloud.com/uploads/2021/08/go-modules-1.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="go modules 1" decoding="async" srcset="https://cdn.clever-cloud.com/uploads/2021/08/go-modules-1.png 1400w, https://cdn.clever-cloud.com/uploads/2021/08/go-modules-1-300x116.png 300w, https://cdn.clever-cloud.com/uploads/2021/08/go-modules-1-1024x395.png 1024w, https://cdn.clever-cloud.com/uploads/2021/08/go-modules-1-768x296.png 768w, https://cdn.clever-cloud.com/uploads/2021/08/go-modules-1-1368x528.png 1368w" sizes="(max-width: 1400px) 100vw, 1400px" /></p><p>You can now build your go projects with go modules! Please take a look at our <a href="https://www.clever.cloud/developers/go/go/#build-the-application">Go modules documentation</a>.</p>
<span id="more-2963"></span>

<p>At the begining of Go&#39;s adoption, the build tools available were <code>goinstall</code> and then <code>go get</code>. It worked simply, but versioning was not managed. Developers started vendoring libs, it started to be a bit messy. The Go community addressed this problem with different third-party builds and dependencies management tools. And then came the official answer from the Go team: <a href="https://blog.golang.org/using-go-modules">Go Modules</a>. And we support it on Clever Cloud \o/.</p>
<h2 id="how-to-deploy">How to Deploy</h2>
<p>The default build tool is still go get. So to choose go modules you will need the following environment variable: <code>CC_GO_BUILD_TOOL=gomod</code></p>
<p>Please make sure your <code>go.mod</code> file is at the root of your repository alongside <code>main.go</code>. If you have a different entrypoint you can specify it with the environment variable <code>CC_GO_PKG=./path/to/entrypoint.go</code></p>
<p>If you follow those two advices, everything should go well and you will have your deployed go application on Clever Cloud. We hope you will enjoy using it. Please let us know if you have any other suggestions to make our golang support better.</p>
<p>Happy coding!</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
