Skip to content

Commit

Permalink
vuepress init
Browse files Browse the repository at this point in the history
  • Loading branch information
askuy committed Sep 18, 2020
1 parent beba7a5 commit 741d763
Show file tree
Hide file tree
Showing 14 changed files with 18,236 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
node_modules
82 changes: 82 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
module.exports = {
title: 'Go知识图谱',
description: 'Go知识图谱',
head: [
['meta', {
name: 'keywords',
content: 'Go,golang,awesome,gocn'
}]
],
markdown: {
lineNumbers: true // 代码块显示行号
},
themeConfig: {
nav: [
{
text: 'Go语言知识',
link: '/document/'
},
{
text: 'GO中国社区',
link: 'https://gocn.vip',
},
{
text: 'Gopher China',
link: 'https://gopherchina.org',
},
],
displayAllHeaders: false,
activeHeaderLinks: true,
sidebar: {
'/d/': [
"",
'senior',
'gotool',
'goproject',
'ecology',
'company',
'goblog',
],
},
sidebarDepth: 2,
// 假定是 GitHub. 同时也可以是一个完整的 GitLab URL
repo: 'https://github.com/gocn/knowledge',
// 自定义仓库链接文字。默认从 `themeConfig.repo` 中自动推断为
// "GitHub"/"GitLab"/"Bitbucket" 其中之一,或是 "Source"。
// repoLabel: '查看源码',
// 假如文档不是放在仓库的根目录下:
docsDir: 'docs',
// 假如文档放在一个特定的分支下:
docsBranch: 'master',
editLinks: true,
editLinkText: '帮助我们改善此页面!',
lastUpdated: '上次更新',
serviceWorker: {
updatePopup: {
message: "发现新内容可用",
buttonText: "刷新"
}
},
smoothScroll: true,
},
plugins: [
['@vuepress/last-updated',
{
transformer: (timestamp, lang) => {
// 不要忘了安装 moment
const moment = require('moment')
moment.locale("zh-cn")
return moment(timestamp).format('YYYY-MM-DD HH:mm:ss')
},

dateOptions: {
hours12: true
}
}
],
'@vuepress/back-to-top',
'@vuepress/active-header-links',
'@vuepress/medium-zoom',
'@vuepress/nprogress'
]
}
17 changes: 17 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
home: true
actionText: 快来学习 →
actionLink: /d/
heroText: Gopher Knowledge
tagline: 快速学习GO!
sidebar: auto
features:
- title: 易学的Go资料
details:
- title: 优秀的Go项目
details:
- title: 最好的Go博客
details:

footer: Apache Licensed | Copyright © 2020-present GoCN
---
1 change: 1 addition & 0 deletions docs/d/company.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Go公司
1 change: 1 addition & 0 deletions docs/d/ecology.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Go生态
1 change: 1 addition & 0 deletions docs/d/goblog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Go博客
4 changes: 4 additions & 0 deletions docs/d/goproject.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Go项目
## 云计算
- [moby](https://github.com/moby/moby) 容器,

11 changes: 11 additions & 0 deletions docs/d/gotool.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Go工具
- [go get](https://github.com/astaxie/build-web-application-with-golang/blob/master/zh/01.3.md#go-get)
- [go intstall](https://github.com/astaxie/build-web-application-with-golang/blob/master/zh/01.3.md#go-install)
- [go generate](https://github.com/astaxie/build-web-application-with-golang/blob/master/zh/01.3.md#go-generate)
- [vendering](https://golang.org/cmd/go/#hdr-Vendor_Directories)
- [交叉编译](https://rakyll.org/cross-compilation/)
- [cgo](https://github.com/golang/go/wiki/cgo)
- [python读取go](https://blog.filippo.io/building-python-modules-with-go-1-5/)
- [ruby读取go](http://c7.se/go-and-ruby-ffi/)
- [swift读取go](https://rakyll.org/swift/)
- [go编译共享库so](https://github.com/jbuberel/buildmodeshared)
107 changes: 107 additions & 0 deletions docs/d/newbee.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# Go基础教程
## Go 环境
- [Go开发环境安装](https://gocn.vip/wiki/install)
- [Go Module 配置](https://gocn.vip/wiki/gomodule)

## Go 语言教程
- [[Go 零基础编程入门教程-01] Go 安装和配置](https://www.bilibili.com/video/av18288497/)
- [[Go 零基础编程入门教程-02] Go 开发利器:VSCode](https://www.bilibili.com/video/av18319744/)
- [[Go 零基础编程入门教程-03] 命名规范,声明变量和常量](https://www.bilibili.com/video/av18523501/)
- [[Go 零基础编程入门教程-04] 基础数据类型](https://www.bilibili.com/video/av18545561/)
- [[Go 零基础编程入门教程-05] 数组](https://www.bilibili.com/video/av18622585/)
- [[Go 零基础编程入门教程-06] 切片](https://www.bilibili.com/video/av18699016/)
- [[Go 零基础编程入门教程-07] Map 学习和使用](https://www.bilibili.com/video/av18794720/)
- [[Go 零基础编程入门教程-08] 函数](https://www.bilibili.com/video/av18832358/)
- [[Go 零基础编程入门教程-09] 自定义类型](https://www.bilibili.com/video/av19875467)
- [[Go 零基础编程入门教程-10] 结构体](https://www.bilibili.com/video/av20049165/)
- [[Go 零基础编程入门教程-11] 方法](https://www.bilibili.com/video/av20318388/)
- [[Go 零基础编程入门教程-12] 接口](https://www.bilibili.com/video/av20330175/)
- [[Go 零基础编程入门教程-13] 分支循环](https://www.bilibili.com/video/av20620028/)
- [[Go 零基础编程入门教程-14] 异常处理](https://www.bilibili.com/video/av20664302/)
- [[Go 零基础编程入门教程-15] 并发与同步](https://www.bilibili.com/video/av20894338/)
- [[Go 零基础编程入门教程-16] channel](https://www.bilibili.com/video/av20931427/)
- [[Go 零基础编程入门教程-17]](https://www.bilibili.com/video/av21172512)
- [[Go 零基础编程入门教程-18] 原子操作](https://www.bilibili.com/video/av21227084)
- [[Go 零基础编程入门教程-19] 文件读取](https://www.bilibili.com/video/av21890850)
- [[Go 零基础编程入门教程-20] 文件写入](https://www.bilibili.com/video/av22436779)
- [[Go 零基础编程入门教程-21] 序列化和反序列化:XML](https://www.bilibili.com/video/av23686676)
- [[Go 零基础编程入门教程-22] 序列化和反序列化:JSON](https://www.bilibili.com/video/av24327123)


## Go By Example
Go 是一门被设计用来构建简单、高效、可信赖软件的开源程序设计语言。<br />Go by Example 是对 Go 基于实践的介绍,包含一系列带有注释说明的示例程序。查看第一个例子或者浏览下面的完整列表
- [Hello World](https://gobyexample-cn.github.io/hello-world)
- [](https://gobyexample-cn.github.io/values)
- [变量](https://gobyexample-cn.github.io/variables)
- [常量](https://gobyexample-cn.github.io/constants)
- [For 循环](https://gobyexample-cn.github.io/for)
- [If/Else 分支](https://gobyexample-cn.github.io/if-else)
- [Switch 分支结构](https://gobyexample-cn.github.io/switch)
- [数组](https://gobyexample-cn.github.io/arrays)
- [切片](https://gobyexample-cn.github.io/slices)
- [Map](https://gobyexample-cn.github.io/maps)
- [Range 遍历](https://gobyexample-cn.github.io/range)
- [函数](https://gobyexample-cn.github.io/functions)
- [多返回值](https://gobyexample-cn.github.io/multiple-return-values)
- [变参函数](https://gobyexample-cn.github.io/variadic-functions)
- [闭包](https://gobyexample-cn.github.io/closures)
- [递归](https://gobyexample-cn.github.io/recursion)
- [指针](https://gobyexample-cn.github.io/pointers)
- [结构体](https://gobyexample-cn.github.io/structs)
- [方法](https://gobyexample-cn.github.io/methods)
- [接口](https://gobyexample-cn.github.io/interfaces)
- [错误处理](https://gobyexample-cn.github.io/errors)
- [协程](https://gobyexample-cn.github.io/goroutines)
- [通道](https://gobyexample-cn.github.io/channels)
- [通道缓冲](https://gobyexample-cn.github.io/channel-buffering)
- [通道同步](https://gobyexample-cn.github.io/channel-synchronization)
- [通道方向](https://gobyexample-cn.github.io/channel-directions)
- [通道选择器](https://gobyexample-cn.github.io/select)
- [超时处理](https://gobyexample-cn.github.io/timeouts)
- [非阻塞通道操作](https://gobyexample-cn.github.io/non-blocking-channel-operations)
- [通道的关闭](https://gobyexample-cn.github.io/closing-channels)
- [通道遍历](https://gobyexample-cn.github.io/range-over-channels)
- [Timer](https://gobyexample-cn.github.io/timers)
- [Ticker](https://gobyexample-cn.github.io/tickers)
- [工作池](https://gobyexample-cn.github.io/worker-pools)
- [WaitGroup](https://gobyexample-cn.github.io/waitgroups)
- [速率限制](https://gobyexample-cn.github.io/rate-limiting)
- [原子计数器](https://gobyexample-cn.github.io/atomic-counters)
- [互斥锁](https://gobyexample-cn.github.io/mutexes)
- [状态协程](https://gobyexample-cn.github.io/stateful-goroutines)
- [排序](https://gobyexample-cn.github.io/sorting)
- [使用函数自定义排序](https://gobyexample-cn.github.io/sorting-by-functions)
- [Panic](https://gobyexample-cn.github.io/panic)
- [Defer](https://gobyexample-cn.github.io/defer)
- [组合函数](https://gobyexample-cn.github.io/collection-functions)
- [字符串函数](https://gobyexample-cn.github.io/string-functions)
- [字符串格式化](https://gobyexample-cn.github.io/string-formatting)
- [正则表达式](https://gobyexample-cn.github.io/regular-expressions)
- [JSON](https://gobyexample-cn.github.io/json)
- [XML](https://gobyexample-cn.github.io/xml)
- [时间](https://gobyexample-cn.github.io/time)
- [时间戳](https://gobyexample-cn.github.io/epoch)
- [时间的格式化和解析](https://gobyexample-cn.github.io/time-formatting-parsing)
- [随机数](https://gobyexample-cn.github.io/random-numbers)
- [数字解析](https://gobyexample-cn.github.io/number-parsing)
- [URL 解析](https://gobyexample-cn.github.io/url-parsing)
- [SHA1 哈希](https://gobyexample-cn.github.io/sha1-hashes)
- [Base64 编码](https://gobyexample-cn.github.io/base64-encoding)
- [读文件](https://gobyexample-cn.github.io/reading-files)
- [写文件](https://gobyexample-cn.github.io/writing-files)
- [行过滤器](https://gobyexample-cn.github.io/line-filters)
- [文件路径](https://gobyexample-cn.github.io/file-paths)
- [目录](https://gobyexample-cn.github.io/directories)
- [临时文件和目录](https://gobyexample-cn.github.io/temporary-files-and-directories)
- [单元测试](https://gobyexample-cn.github.io/testing)
- [命令行参数](https://gobyexample-cn.github.io/command-line-arguments)
- [命令行标志](https://gobyexample-cn.github.io/command-line-flags)
- [命令行子命令](https://gobyexample-cn.github.io/command-line-subcommands)
- [环境变量](https://gobyexample-cn.github.io/environment-variables)
- [HTTP 客户端](https://gobyexample-cn.github.io/http-clients)
- [HTTP 服务端](https://gobyexample-cn.github.io/http-servers)
- [Context](https://gobyexample-cn.github.io/context)
- [生成进程](https://gobyexample-cn.github.io/spawning-processes)
- [执行进程](https://gobyexample-cn.github.io/execing-processes)
- [信号](https://gobyexample-cn.github.io/signals)
- [退出](https://gobyexample-cn.github.io/exit)
107 changes: 107 additions & 0 deletions docs/d/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# Go基础教程
## Go 环境
- [Go开发环境安装](https://gocn.vip/wiki/install)
- [Go Module 配置](https://gocn.vip/wiki/gomodule)

## Go 语言教程
- [[Go 零基础编程入门教程-01] Go 安装和配置](https://www.bilibili.com/video/av18288497/)
- [[Go 零基础编程入门教程-02] Go 开发利器:VSCode](https://www.bilibili.com/video/av18319744/)
- [[Go 零基础编程入门教程-03] 命名规范,声明变量和常量](https://www.bilibili.com/video/av18523501/)
- [[Go 零基础编程入门教程-04] 基础数据类型](https://www.bilibili.com/video/av18545561/)
- [[Go 零基础编程入门教程-05] 数组](https://www.bilibili.com/video/av18622585/)
- [[Go 零基础编程入门教程-06] 切片](https://www.bilibili.com/video/av18699016/)
- [[Go 零基础编程入门教程-07] Map 学习和使用](https://www.bilibili.com/video/av18794720/)
- [[Go 零基础编程入门教程-08] 函数](https://www.bilibili.com/video/av18832358/)
- [[Go 零基础编程入门教程-09] 自定义类型](https://www.bilibili.com/video/av19875467)
- [[Go 零基础编程入门教程-10] 结构体](https://www.bilibili.com/video/av20049165/)
- [[Go 零基础编程入门教程-11] 方法](https://www.bilibili.com/video/av20318388/)
- [[Go 零基础编程入门教程-12] 接口](https://www.bilibili.com/video/av20330175/)
- [[Go 零基础编程入门教程-13] 分支循环](https://www.bilibili.com/video/av20620028/)
- [[Go 零基础编程入门教程-14] 异常处理](https://www.bilibili.com/video/av20664302/)
- [[Go 零基础编程入门教程-15] 并发与同步](https://www.bilibili.com/video/av20894338/)
- [[Go 零基础编程入门教程-16] channel](https://www.bilibili.com/video/av20931427/)
- [[Go 零基础编程入门教程-17]](https://www.bilibili.com/video/av21172512)
- [[Go 零基础编程入门教程-18] 原子操作](https://www.bilibili.com/video/av21227084)
- [[Go 零基础编程入门教程-19] 文件读取](https://www.bilibili.com/video/av21890850)
- [[Go 零基础编程入门教程-20] 文件写入](https://www.bilibili.com/video/av22436779)
- [[Go 零基础编程入门教程-21] 序列化和反序列化:XML](https://www.bilibili.com/video/av23686676)
- [[Go 零基础编程入门教程-22] 序列化和反序列化:JSON](https://www.bilibili.com/video/av24327123)


## Go By Example
Go 是一门被设计用来构建简单、高效、可信赖软件的开源程序设计语言。<br />Go by Example 是对 Go 基于实践的介绍,包含一系列带有注释说明的示例程序。查看第一个例子或者浏览下面的完整列表
- [Hello World](https://gobyexample-cn.github.io/hello-world)
- [](https://gobyexample-cn.github.io/values)
- [变量](https://gobyexample-cn.github.io/variables)
- [常量](https://gobyexample-cn.github.io/constants)
- [For 循环](https://gobyexample-cn.github.io/for)
- [If/Else 分支](https://gobyexample-cn.github.io/if-else)
- [Switch 分支结构](https://gobyexample-cn.github.io/switch)
- [数组](https://gobyexample-cn.github.io/arrays)
- [切片](https://gobyexample-cn.github.io/slices)
- [Map](https://gobyexample-cn.github.io/maps)
- [Range 遍历](https://gobyexample-cn.github.io/range)
- [函数](https://gobyexample-cn.github.io/functions)
- [多返回值](https://gobyexample-cn.github.io/multiple-return-values)
- [变参函数](https://gobyexample-cn.github.io/variadic-functions)
- [闭包](https://gobyexample-cn.github.io/closures)
- [递归](https://gobyexample-cn.github.io/recursion)
- [指针](https://gobyexample-cn.github.io/pointers)
- [结构体](https://gobyexample-cn.github.io/structs)
- [方法](https://gobyexample-cn.github.io/methods)
- [接口](https://gobyexample-cn.github.io/interfaces)
- [错误处理](https://gobyexample-cn.github.io/errors)
- [协程](https://gobyexample-cn.github.io/goroutines)
- [通道](https://gobyexample-cn.github.io/channels)
- [通道缓冲](https://gobyexample-cn.github.io/channel-buffering)
- [通道同步](https://gobyexample-cn.github.io/channel-synchronization)
- [通道方向](https://gobyexample-cn.github.io/channel-directions)
- [通道选择器](https://gobyexample-cn.github.io/select)
- [超时处理](https://gobyexample-cn.github.io/timeouts)
- [非阻塞通道操作](https://gobyexample-cn.github.io/non-blocking-channel-operations)
- [通道的关闭](https://gobyexample-cn.github.io/closing-channels)
- [通道遍历](https://gobyexample-cn.github.io/range-over-channels)
- [Timer](https://gobyexample-cn.github.io/timers)
- [Ticker](https://gobyexample-cn.github.io/tickers)
- [工作池](https://gobyexample-cn.github.io/worker-pools)
- [WaitGroup](https://gobyexample-cn.github.io/waitgroups)
- [速率限制](https://gobyexample-cn.github.io/rate-limiting)
- [原子计数器](https://gobyexample-cn.github.io/atomic-counters)
- [互斥锁](https://gobyexample-cn.github.io/mutexes)
- [状态协程](https://gobyexample-cn.github.io/stateful-goroutines)
- [排序](https://gobyexample-cn.github.io/sorting)
- [使用函数自定义排序](https://gobyexample-cn.github.io/sorting-by-functions)
- [Panic](https://gobyexample-cn.github.io/panic)
- [Defer](https://gobyexample-cn.github.io/defer)
- [组合函数](https://gobyexample-cn.github.io/collection-functions)
- [字符串函数](https://gobyexample-cn.github.io/string-functions)
- [字符串格式化](https://gobyexample-cn.github.io/string-formatting)
- [正则表达式](https://gobyexample-cn.github.io/regular-expressions)
- [JSON](https://gobyexample-cn.github.io/json)
- [XML](https://gobyexample-cn.github.io/xml)
- [时间](https://gobyexample-cn.github.io/time)
- [时间戳](https://gobyexample-cn.github.io/epoch)
- [时间的格式化和解析](https://gobyexample-cn.github.io/time-formatting-parsing)
- [随机数](https://gobyexample-cn.github.io/random-numbers)
- [数字解析](https://gobyexample-cn.github.io/number-parsing)
- [URL 解析](https://gobyexample-cn.github.io/url-parsing)
- [SHA1 哈希](https://gobyexample-cn.github.io/sha1-hashes)
- [Base64 编码](https://gobyexample-cn.github.io/base64-encoding)
- [读文件](https://gobyexample-cn.github.io/reading-files)
- [写文件](https://gobyexample-cn.github.io/writing-files)
- [行过滤器](https://gobyexample-cn.github.io/line-filters)
- [文件路径](https://gobyexample-cn.github.io/file-paths)
- [目录](https://gobyexample-cn.github.io/directories)
- [临时文件和目录](https://gobyexample-cn.github.io/temporary-files-and-directories)
- [单元测试](https://gobyexample-cn.github.io/testing)
- [命令行参数](https://gobyexample-cn.github.io/command-line-arguments)
- [命令行标志](https://gobyexample-cn.github.io/command-line-flags)
- [命令行子命令](https://gobyexample-cn.github.io/command-line-subcommands)
- [环境变量](https://gobyexample-cn.github.io/environment-variables)
- [HTTP 客户端](https://gobyexample-cn.github.io/http-clients)
- [HTTP 服务端](https://gobyexample-cn.github.io/http-servers)
- [Context](https://gobyexample-cn.github.io/context)
- [生成进程](https://gobyexample-cn.github.io/spawning-processes)
- [执行进程](https://gobyexample-cn.github.io/execing-processes)
- [信号](https://gobyexample-cn.github.io/signals)
- [退出](https://gobyexample-cn.github.io/exit)
Loading

0 comments on commit 741d763

Please sign in to comment.