Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
548b304
commit a9872a7
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
desc: go mod 源码阅读 | ||
title: 第 27 期 Go 夜读之 go mod 源码阅读 | ||
date: 2019-01-10T21:05:00+08:00 | ||
author: mai | ||
--- | ||
|
||
## 学到的内容 | ||
|
||
1. mf := new(modfile.File) | ||
2. lineno++ 感觉是无用的代码? | ||
3. 判断外部网络是否可用 | ||
|
||
```golang | ||
if runtime.GOOS == "nacl" || runtime.GOOS == "js" { | ||
t.Skipf("skipping test: no external network on %s", runtime.GOOS) | ||
} | ||
``` | ||
|
||
## 观看视频 | ||
|
||
{{< youtube id="Isd-FOmM9C8" >}} |