Skip to content

Commit

Permalink
Site updated: 2023-11-29 22:44:01
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaibineric committed Nov 29, 2023
1 parent 6c7442b commit fc5571c
Show file tree
Hide file tree
Showing 4 changed files with 591 additions and 583 deletions.
12 changes: 8 additions & 4 deletions 2023/11/27/go-基础/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<meta property="og:image" content="https://gitee.com/lihaibineric/picgo/raw/master/pic/image-20231127204733470.png">
<meta property="og:image" content="https://gitee.com/lihaibineric/picgo/raw/master/pic/image-20231127204804150.png">
<meta property="article:published_time" content="2023-11-27T12:41:11.000Z">
<meta property="article:modified_time" content="2023-11-28T12:18:06.567Z">
<meta property="article:modified_time" content="2023-11-29T14:43:35.495Z">
<meta property="article:author" content="Haibin Li">
<meta property="article:tag" content="后端开发">
<meta name="twitter:card" content="summary_large_image">
Expand Down Expand Up @@ -211,7 +211,7 @@
<span class="post-meta mr-2">
<i class="iconfont icon-chart"></i>

246 words
330 words

</span>

Expand Down Expand Up @@ -283,9 +283,13 @@ <h4 id="安装步骤">安装步骤:</h4>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">go <span class="hljs-built_in">env</span><br></code></pre></td></tr></table></figure>
<p><img src="https://gitee.com/lihaibineric/picgo/raw/master/pic/image-20231127204804150.png" srcset="/img/loading.gif" lazyload alt="go env" style="zoom: 50%;" /></p></li>
</ol>
<h4 id="section"></h4>
<p>go语言没有异常,全部都用ERROR来表示</p>
<h4
id="go语言没有异常全部都用error来表示">go语言没有异常,全部都用ERROR来表示</h4>
<h2 id="go基本语法">Go基本语法</h2>
<h4 id="如何编译并运行一个go文件">如何编译并运行一个Go文件</h4>
<p>对于已经写好的go文件,这里以hello.go作为例子,直接使用以下语句进行编译并运行</p>
<figure class="highlight go"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs go"><span class="hljs-keyword">go</span> run hello.<span class="hljs-keyword">go</span><br></code></pre></td></tr></table></figure>
<p>或者将编译和运行两个过程分开,先编译后运行:</p>
<figure class="highlight go"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs go"><span class="hljs-keyword">go</span> build hello.<span class="hljs-keyword">go</span><br>./ hello<br></code></pre></td></tr></table></figure>


Expand Down
40 changes: 20 additions & 20 deletions categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,22 +275,22 @@

<div class="category row nomargin-x">
<a class="category-item collapsed
list-group-item category-item-action col-10 col-md-11 col-xm-11" title="强化学习"
id="heading-6964a39570837d485ed73b611a392391" role="tab" data-toggle="collapse" href="#collapse-6964a39570837d485ed73b611a392391"
list-group-item category-item-action col-10 col-md-11 col-xm-11" title="深度学习"
id="heading-8c5f70f85d5a691a5f1dc7be5473736b" role="tab" data-toggle="collapse" href="#collapse-8c5f70f85d5a691a5f1dc7be5473736b"
aria-expanded="false"
>
强化学习
深度学习
<span class="list-group-count"></span>
<i class="iconfont icon-arrowright"></i>
</a>

<a href="/categories/%E5%BC%BA%E5%8C%96%E5%AD%A6%E4%B9%A0/" class="category-count col-2 col-md-1 col-xm-1">
<a href="/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/" class="category-count col-2 col-md-1 col-xm-1">
<i class="iconfont icon-articles"></i>
<span>2</span>
</a>

<div class="category-collapse collapse " id="collapse-6964a39570837d485ed73b611a392391"
role="tabpanel" aria-labelledby="heading-6964a39570837d485ed73b611a392391">
<div class="category-collapse collapse " id="collapse-8c5f70f85d5a691a5f1dc7be5473736b"
role="tabpanel" aria-labelledby="heading-8c5f70f85d5a691a5f1dc7be5473736b">



Expand All @@ -299,19 +299,19 @@



<a href="/2023/11/22/MARL_%E8%87%AA%E5%8A%A8%E5%88%86%E7%BB%84/" title="多智能体强化学习】基于自动分组的价值函数分解"
<a href="/2023/10/22/pytorch/" title="深度学习】PyTorch使用手册"
class="list-group-item list-group-item-action
">
<span class="category-post">多智能体强化学习】基于自动分组的价值函数分解</span>
<span class="category-post">深度学习】PyTorch使用手册</span>
</a>




<a href="/2023/10/22/pymarl%E7%8E%AF%E5%A2%83/" title="多智能体强化学习】Pymarl环境配置"
<a href="/2023/10/21/RSS-Model/" title="自动驾驶】RSS Model for Autonomous Driving"
class="list-group-item list-group-item-action
">
<span class="category-post">多智能体强化学习】Pymarl环境配置</span>
<span class="category-post">自动驾驶】RSS Model for Autonomous Driving</span>
</a>


Expand All @@ -326,22 +326,22 @@

<div class="category row nomargin-x">
<a class="category-item collapsed
list-group-item category-item-action col-10 col-md-11 col-xm-11" title="深度学习"
id="heading-8c5f70f85d5a691a5f1dc7be5473736b" role="tab" data-toggle="collapse" href="#collapse-8c5f70f85d5a691a5f1dc7be5473736b"
list-group-item category-item-action col-10 col-md-11 col-xm-11" title="强化学习"
id="heading-6964a39570837d485ed73b611a392391" role="tab" data-toggle="collapse" href="#collapse-6964a39570837d485ed73b611a392391"
aria-expanded="false"
>
深度学习
强化学习
<span class="list-group-count"></span>
<i class="iconfont icon-arrowright"></i>
</a>

<a href="/categories/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/" class="category-count col-2 col-md-1 col-xm-1">
<a href="/categories/%E5%BC%BA%E5%8C%96%E5%AD%A6%E4%B9%A0/" class="category-count col-2 col-md-1 col-xm-1">
<i class="iconfont icon-articles"></i>
<span>2</span>
</a>

<div class="category-collapse collapse " id="collapse-8c5f70f85d5a691a5f1dc7be5473736b"
role="tabpanel" aria-labelledby="heading-8c5f70f85d5a691a5f1dc7be5473736b">
<div class="category-collapse collapse " id="collapse-6964a39570837d485ed73b611a392391"
role="tabpanel" aria-labelledby="heading-6964a39570837d485ed73b611a392391">



Expand All @@ -350,19 +350,19 @@



<a href="/2023/10/22/pytorch/" title="深度学习】PyTorch使用手册"
<a href="/2023/11/22/MARL_%E8%87%AA%E5%8A%A8%E5%88%86%E7%BB%84/" title="多智能体强化学习】基于自动分组的价值函数分解"
class="list-group-item list-group-item-action
">
<span class="category-post">深度学习】PyTorch使用手册</span>
<span class="category-post">多智能体强化学习】基于自动分组的价值函数分解</span>
</a>




<a href="/2023/10/21/RSS-Model/" title="自动驾驶】RSS Model for Autonomous Driving"
<a href="/2023/10/22/pymarl%E7%8E%AF%E5%A2%83/" title="多智能体强化学习】Pymarl环境配置"
class="list-group-item list-group-item-action
">
<span class="category-post">自动驾驶】RSS Model for Autonomous Driving</span>
<span class="category-post">多智能体强化学习】Pymarl环境配置</span>
</a>


Expand Down
2 changes: 1 addition & 1 deletion local-search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link href="/2023/11/27/go-%E5%9F%BA%E7%A1%80/"/>
<url>/2023/11/27/go-%E5%9F%BA%E7%A1%80/</url>

<content type="html"><![CDATA[<meta name="referrer" content="no-referrer"/><p>学习网站:<ahref="https://www.bilibili.com/video/BV1gf4y1r79E/?spm_id_from=333.1007.top_right_bar_window_custom_collection.content.click">8小时转职Golang工程师</a></p><h2 id="go的环境安装">Go的环境安装</h2><h4 id="下载官网">下载官网:</h4><p>go的官网下载网站,选择合适的系统版本进行安装<ahref="https://go.dev/dl/">https://go.dev/dl/</a></p><h4 id="安装步骤">安装步骤:</h4><ol type="1"><li><p>下载安装包并按照安装包的指引下载相关的内容</p></li><li><p>对于Mac系统会直接配置好环境变量,根据官网的安装手册进行安装 <ahref="https://go.dev/doc/install">https://go.dev/doc/install</a></p></li><li><p>测试GO的版本</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">go version<br></code></pre></td></tr></table></figure><p><img src="https://gitee.com/lihaibineric/picgo/raw/master/pic/image-20231127204733470.png" alt="go version" style="zoom: 67%;" /></p></li><li><p>测试GO的环境变量</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">go <span class="hljs-built_in">env</span><br></code></pre></td></tr></table></figure><p><img src="https://gitee.com/lihaibineric/picgo/raw/master/pic/image-20231127204804150.png" alt="go env" style="zoom: 50%;" /></p></li></ol><h4 id="section"></h4><p>go语言没有异常,全部都用ERROR来表示</p><figure class="highlight go"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs go"><span class="hljs-keyword">go</span> run hello.<span class="hljs-keyword">go</span><br></code></pre></td></tr></table></figure><figure class="highlight go"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs go"><span class="hljs-keyword">go</span> build hello.<span class="hljs-keyword">go</span><br>./ hello<br></code></pre></td></tr></table></figure>]]></content>
<content type="html"><![CDATA[<meta name="referrer" content="no-referrer"/><p>学习网站:<ahref="https://www.bilibili.com/video/BV1gf4y1r79E/?spm_id_from=333.1007.top_right_bar_window_custom_collection.content.click">8小时转职Golang工程师</a></p><h2 id="go的环境安装">Go的环境安装</h2><h4 id="下载官网">下载官网:</h4><p>go的官网下载网站,选择合适的系统版本进行安装<ahref="https://go.dev/dl/">https://go.dev/dl/</a></p><h4 id="安装步骤">安装步骤:</h4><ol type="1"><li><p>下载安装包并按照安装包的指引下载相关的内容</p></li><li><p>对于Mac系统会直接配置好环境变量,根据官网的安装手册进行安装 <ahref="https://go.dev/doc/install">https://go.dev/doc/install</a></p></li><li><p>测试GO的版本</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">go version<br></code></pre></td></tr></table></figure><p><img src="https://gitee.com/lihaibineric/picgo/raw/master/pic/image-20231127204733470.png" alt="go version" style="zoom: 67%;" /></p></li><li><p>测试GO的环境变量</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">go <span class="hljs-built_in">env</span><br></code></pre></td></tr></table></figure><p><img src="https://gitee.com/lihaibineric/picgo/raw/master/pic/image-20231127204804150.png" alt="go env" style="zoom: 50%;" /></p></li></ol><h4id="go语言没有异常全部都用error来表示">go语言没有异常,全部都用ERROR来表示</h4><h2 id="go基本语法">Go基本语法</h2><h4 id="如何编译并运行一个go文件">如何编译并运行一个Go文件</h4><p>对于已经写好的go文件,这里以hello.go作为例子,直接使用以下语句进行编译并运行</p><figure class="highlight go"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs go"><span class="hljs-keyword">go</span> run hello.<span class="hljs-keyword">go</span><br></code></pre></td></tr></table></figure><p>或者将编译和运行两个过程分开,先编译后运行:</p><figure class="highlight go"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs go"><span class="hljs-keyword">go</span> build hello.<span class="hljs-keyword">go</span><br>./ hello<br></code></pre></td></tr></table></figure>]]></content>


<categories>
Expand Down
Loading

0 comments on commit fc5571c

Please sign in to comment.