可以的,可以看看html/template。而且现有的流行web框架都支持,比如gin