TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Simple wiki server written in Go

82 点作者 Spiritus超过 10 年前

6 条评论

lettergram超过 10 年前
I wrote a similar project a while back, you might be interested in checking out.<p>A friend and I implemented cookies, user login and database. However, I would recommend not using the SHA2 encryption method we used (we did it for fun not for security).<p><a href="https://github.com/lettergram/neptune" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lettergram&#x2F;neptune</a>
anton_gogolev超过 10 年前
Whar bothers me in Go (and Python and Ruby, for that matteR) is that there&#x27;s a strange mix of human-friendly identifiers like ResponseWriter, ParseInt, etc. and old-style Unix&#x27;y ones, like stdout, strconv, Println. Wildly inconsistent.<p>I wonder if &quot;creat&quot; is a valid function call somewhere.
评论 #8881125 未加载
评论 #8880732 未加载
评论 #8880565 未加载
评论 #8881552 未加载
评论 #8881493 未加载
评论 #8880526 未加载
评论 #8891921 未加载
Spiritus超过 10 年前
Author here. As mentioned in the README I created this project as a process to learn to Go.<p>I&#x27;m actually quite happy with how it turned out, I wanted something really simple to use but still have some nice features like showing the history of a page by leveraging Git.<p>Unfortunately I didn&#x27;t get to use channels... Yet.<p>Coming from a Python background mostly I found Go pretty pleasing to work, however it took a while for me to grok the whole `$GOPATH` and dependencies stuff.
dmunoz超过 10 年前
Good job. I see you went a few steps further than the Writing Web Applications with Go tutorial [0]. Definitely a good way to learn. I like your idea of showing the git history including diffs.<p>For anyone who might be interested in Go and is wondering how this is done, read the tutorial I mentioned. Go has solid documentation alongside a handful of tutorial style article that are worth reading.<p>[0] <a href="http://golang.org/doc/articles/wiki/" rel="nofollow">http:&#x2F;&#x2F;golang.org&#x2F;doc&#x2F;articles&#x2F;wiki&#x2F;</a>
Pinn2超过 10 年前
As usual, I checked the .gitignore. You may want to try &quot;&#x2F;gowiki&quot; instead of &quot;gowiki&quot;.
评论 #8881620 未加载
rco8786超过 10 年前
Interesting considering Rob&#x27;s recent defense of the state of Go error handling.<p>var err error tail.Stdin, err = git.StdoutPipe() if err != nil { log.Println(&quot;ERROR&quot;, err) }<p>tail.Stdout = &amp;out<p>err = tail.Start() if err != nil { log.Println(&quot;ERROR&quot;, err) }<p>err = git.Run() if err != nil { log.Println(&quot;ERROR&quot;, err) }<p>err = tail.Wait() if err != nil { log.Println(&quot;ERROR&quot;, err) }
评论 #8881748 未加载
评论 #8881806 未加载