<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>IT notes - build</title>
    <subtitle>DBRE, AWS platform engineering, PostgreSQL, Linux, FreeBSD, and Rust reference notes.</subtitle>
    <link rel="self" type="application/atom+xml" href="https://nbari.com/tags/build/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://nbari.com"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2019-05-14T19:10:27+02:00</updated>
    <id>https://nbari.com/tags/build/atom.xml</id>
    <entry xml:lang="en">
        <title>//+build disable</title>
        <published>2019-05-14T19:10:27+02:00</published>
        <updated>2019-05-14T19:10:27+02:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://nbari.com/build-disable/"/>
        <id>https://nbari.com/build-disable/</id>
        
        <content type="html" xml:base="https://nbari.com/build-disable/">&lt;p&gt;In &lt;a rel=&quot;external&quot; href=&quot;https://golang.org&quot;&gt;go&lt;/a&gt; if need to sketch something and end having &lt;code&gt;func main()&lt;/code&gt; in two files, you could ignore building one by adding at the top of the
file:&lt;/p&gt;
&lt;pre class=&quot;giallo z-code&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;// +build disable&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is a &lt;a rel=&quot;external&quot; href=&quot;https://golang.org/pkg/go/build/#hdr-Build_Constraints&quot;&gt;build constraint&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A build constraint, also known as a build tag, is a line comment that begins:&lt;/p&gt;
&lt;pre class=&quot;giallo z-code&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;// +build&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</content>
        
    </entry>
</feed>
