V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
TheOnly92

用 go 写了个博客

  •  
  •   TheOnly92 · Jun 14, 2011 · 6331 views
    This topic created in 5441 days ago, the information mentioned may be changed or developed.
    心血来潮,闲来无事,用 go 写了个博客。

    利用了 web.go (与 web.py 相近), mongodb, mustache 合成写了一下,顺便就拿来分享。希望对于要学 go 的同学有帮助(不知有没有 囧),完全没有注释。

    https://github.com/TheOnly92/bloody.go

    对了我是 php 出身,用惯 zend framework 所以 MVC 的结构就是这样了。
    9 replies    1970-01-01 08:00:00 +08:00
    sun019
        1
    sun019  
       Jun 14, 2011
    有时间研究下 哈哈 真不错
    chloerei
        2
    chloerei  
       Jun 14, 2011
    看好go
    qichangxing
        3
    qichangxing  
       Jun 14, 2011
    我简单看了一源码,很清晰,也很好懂,看起来 GO 语言的门槛不会太高,对于有 Python 基础的同学可以看一下哈。很赞!
    poshboytl
        4
    poshboytl  
       Jun 14, 2011
    Great job... 用 go 写web 感觉如何? 呵呵~~
    TheOnly92
        5
    TheOnly92  
    OP
       Jun 14, 2011
    本身 php 出身,从未接触过 static type 的语言,这次第一次碰到,曾几次为此而极度伤脑筋,但是习惯了反而会感激这种功能。

    唯一不是很爽的就是需要经过编译。
    poshboytl
        6
    poshboytl  
       Jun 14, 2011
    @TheOnly92 听说它编译速度奇快... 实际体会如何?
    TheOnly92
        7
    TheOnly92  
    OP
       Jun 14, 2011
    @poshboytl 和 C++ 相比确实快很多。但是和 PHP 相较起来就相去甚远了。
    shellex
        8
    shellex  
       Jun 15, 2011
    先赞一个。

    另外,@TheOnly92 ,不是这样比的。
    TheOnly92
        9
    TheOnly92  
    OP
       Jun 15, 2011
    @shellex 当然知道不是这样比了 :P

    只是在 PHP 修改文件然后在浏览器 Cmd+R 的速度是无可比拟的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   964 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 19:53 · PVG 03:53 · LAX 12:53 · JFK 15:53
    ♥ Do have faith in what you're doing.