-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
188 lines (153 loc) · 5.85 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html lang="en">
<head><meta name="generator" content="Hexo 3.9.0">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<link rel="icon" href="/favicon.ico">
<title>
Singo简介 - Singo
</title>
<!-- theme css & js -->
<link rel="stylesheet" href="/css/spectre.min.css">
<link rel="stylesheet" href="/css/spectre-exp.min.css">
<link rel="stylesheet" href="/css/spectre-icons.min.css">
<link rel="stylesheet" href="/css/spectre_custom.css">
<link rel="stylesheet" href="/css/book.css">
<script src="/js/book.js"></script>
<!-- tocbot -->
<script src="/js/tocbot.min.js"></script>
<link rel="stylesheet" href="/css/tocbot.css">
</head>
<body>
<div class="container">
<div class="book-container">
<div class="columns">
<div class="col-2 hide-lg left">
<div class="book-sidebar">
<h4 class="site-meta">
<a href="/">Singo</a>
</h4>
<div class="sidebar-content">
<ul>
<li><a href="/">Singo简介</a></li>
</ul>
<h2 id="快速指引"><a href="#快速指引" class="headerlink" title="快速指引 "></a>快速指引 <a id="quick-guide"></a></h2><ul>
<li><a href="/quick-guide/download.html">下载安装</a></li>
<li><a href="/quick-guide/package-name.html">修改包名</a></li>
<li><a href="/quick-guide/set-env.html">配置环境变量来连接数据库</a></li>
<li><a href="/quick-guide/run.html">运行项目</a></li>
</ul>
<h2 id="参考资料"><a href="#参考资料" class="headerlink" title="参考资料 "></a>参考资料 <a id="other-docs"></a></h2><ul>
<li><a href="/other-docs/how-to-set-env.html">如何设置环境变量</a></li>
</ul>
</div>
</div>
<script src="/js/book-sidebar.js"></script>
</div>
<div class="column col-8 col-lg-12 middle">
<div class="book-content">
<div class="book-navbar">
<header class="navbar">
<section class="navbar-section">
<img class="navbar-icon" src="/favicon.ico">
</section>
<section class="navbar-center">
Singo
</section>
<section class="navbar-section">
<label class="accordion-header c-hand" for="accordion-sidebar">
<i class="icon icon-menu"></i>
</label>
</section>
</header>
<div class="accordion">
<input type="checkbox" id="accordion-sidebar" name="accordion-checkbox" hidden>
<div class="accordion-body">
<ul>
<li><a href="/">Singo简介</a></li>
</ul>
<h2 id="快速指引"><a href="#快速指引" class="headerlink" title="快速指引 "></a>快速指引 <a id="quick-guide"></a></h2><ul>
<li><a href="/quick-guide/download.html">下载安装</a></li>
<li><a href="/quick-guide/package-name.html">修改包名</a></li>
<li><a href="/quick-guide/set-env.html">配置环境变量来连接数据库</a></li>
<li><a href="/quick-guide/run.html">运行项目</a></li>
</ul>
<h2 id="参考资料"><a href="#参考资料" class="headerlink" title="参考资料 "></a>参考资料 <a id="other-docs"></a></h2><ul>
<li><a href="/other-docs/how-to-set-env.html">如何设置环境变量</a></li>
</ul>
</div>
</div>
</div>
<div class="book-post">
<h1 id="Singo简介"><a href="#Singo简介" class="headerlink" title="Singo简介"></a>Singo简介</h1><h2 id="单体,简单,够用"><a href="#单体,简单,够用" class="headerlink" title="单体,简单,够用"></a>单体,简单,够用</h2><ul>
<li>Singo是为了快速实现Restful API而搭建的。</li>
<li>Singo是单体架构而非微服务架构,用来实现中小型项目,他恰到好处。</li>
<li>Singo只引入最为必要的设计模式,你可以很快上手,把时间投入到你需要完成的工作中。</li>
<li>Singo选取了Golang社区最为流行的基础组件,配合Golang的威力,他只使用单机就可以为每天数百万用户提供稳定的服务。</li>
</ul>
<h2 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h2><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">$</span> git clone https://github.com/bydmm/singo</span><br></pre></td></tr></table></figure>
<h2 id="许可协议"><a href="#许可协议" class="headerlink" title="许可协议"></a>许可协议</h2><p>MIT - 允许各种用途</p>
</div>
<div class="book-comments">
</div>
<script src="/js/book-post.js"></script>
</div>
</div>
<div class="column col-2 hide-lg right">
<div class="book-toc">
<div class="book-tocbot">
</div>
<div class="book-tocbot-menu">
<a class="book-toc-expand" onclick="expand_toc()">Expand all</a>
<a onclick="go_top()">Back to top</a>
<a onclick="go_bottom()">Go to bottom</a>
</div>
</div>
<script>
tocbot.init({
tocSelector: '.book-tocbot',
contentSelector: '.book-post',
headingSelector: 'h1, h2, h3, h4, h5',
collapseDepth: 2,
orderedList: false,
scrollSmooth: false,
});
function expand_toc(){
var b = document.querySelector(".book-toc-expand");
tocbot.init({
tocSelector: '.book-tocbot',
contentSelector: '.book-post',
headingSelector: 'h1, h2, h3, h4, h5',
collapseDepth: 6,
orderedList: false,
scrollSmooth: false,
});
b.setAttribute("onclick", "collapse_toc()");
b.innerHTML = "Collapse all"
}
function collapse_toc(){
var b = document.querySelector(".book-toc-expand");
tocbot.init({
tocSelector: '.book-tocbot',
contentSelector: '.book-post',
headingSelector: 'h1, h2, h3, h4, h5',
collapseDepth: 2,
orderedList: false,
scrollSmooth: false,
});
b.setAttribute("onclick", "expand_toc()");
b.innerHTML = "Expand all"
}
function go_top() {
window.scrollTo(0, 0);
}
function go_bottom() {
window.scrollTo(0, document.body.scrollHeight);
}
</script>
</div>
</div>
</div>
</div>
</body>
</html>