Skip to content

Commit

Permalink
docs(post): go mod reading part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwenmai committed Jan 10, 2019
1 parent 548b304 commit a9872a7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions content/reading/2019-01-10-go-mod-2.md
@@ -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" >}}

0 comments on commit a9872a7

Please sign in to comment.