Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(227)

Issue 12978043: code review 12978043: cmd/godoc: bake templates and scripts into godoc binary (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by adg
Modified:
11 years, 10 months ago
Reviewers:
r
CC:
golang-dev, bradfitz, r, ahormann, rsc
Visibility:
Public.

Description

cmd/godoc: bake templates and scripts into godoc binary Add godoc/vfs/mapfs package for serving baked files. Fixes issue 6010.

Patch Set 1 #

Total comments: 1

Patch Set 2 : diff -r 255aa6fe61f7 https://code.google.com/p/go.tools #

Total comments: 6

Patch Set 3 : diff -r 255aa6fe61f7 https://code.google.com/p/go.tools #

Total comments: 2

Patch Set 4 : diff -r 255aa6fe61f7 https://code.google.com/p/go.tools #

Patch Set 5 : diff -r 75cb96458b54 https://code.google.com/p/go.tools #

Patch Set 6 : diff -r 75cb96458b54 https://code.google.com/p/go.tools #

Patch Set 7 : diff -r 75cb96458b54 https://code.google.com/p/go.tools #

Patch Set 8 : diff -r 75cb96458b54 https://code.google.com/p/go.tools #

Patch Set 9 : diff -r 75cb96458b54 https://code.google.com/p/go.tools #

Patch Set 10 : diff -r 75cb96458b54 https://code.google.com/p/go.tools #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2117 lines, -7 lines) Patch
A cmd/godoc/bake.go View 1 2 3 4 5 6 7 8 1 chunk +64 lines, -0 lines 0 comments Download
A cmd/godoc/bake.sh View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M cmd/godoc/main.go View 1 2 3 2 chunks +2 lines, -7 lines 0 comments Download
A cmd/godoc/template.go View 2 3 4 5 6 7 1 chunk +1961 lines, -0 lines 0 comments Download
A godoc/vfs/mapfs/mapfs.go View 1 2 3 4 5 6 7 8 9 1 chunk +81 lines, -0 lines 0 comments Download

Messages

Total messages: 21
adg
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go.tools
11 years, 10 months ago (2013-08-15 06:13:58 UTC) #1
bradfitz
You've seen camlistore's fileembed, right? It generates embed files that have similar line breaks to ...
11 years, 10 months ago (2013-08-15 06:24:07 UTC) #2
r
not sure why we need any of this. https://codereview.appspot.com/12978043/diff/1/cmd/bake/bake.go File cmd/bake/bake.go (right): https://codereview.appspot.com/12978043/diff/1/cmd/bake/bake.go#newcode86 cmd/bake/bake.go:86: // ...
11 years, 10 months ago (2013-08-15 06:26:46 UTC) #3
adg
Hello golang-dev@googlegroups.com, bradfitz@golang.org, r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 10 months ago (2013-08-15 06:42:01 UTC) #4
adg
On 15 August 2013 16:24, Brad Fitzpatrick <bradfitz@golang.org> wrote: > You've seen camlistore's fileembed, right? ...
11 years, 10 months ago (2013-08-15 06:44:52 UTC) #5
r
https://codereview.appspot.com/12978043/diff/7001/cmd/godoc/bake.go File cmd/godoc/bake.go (right): https://codereview.appspot.com/12978043/diff/7001/cmd/godoc/bake.go#newcode27 cmd/godoc/bake.go:27: varName = flag.String("var", "bakedFiles", "Map variable name") s/M/m/ https://codereview.appspot.com/12978043/diff/7001/cmd/godoc/bake.go#newcode42 ...
11 years, 10 months ago (2013-08-15 06:47:26 UTC) #6
adg
https://codereview.appspot.com/12978043/diff/7001/cmd/godoc/bake.go File cmd/godoc/bake.go (right): https://codereview.appspot.com/12978043/diff/7001/cmd/godoc/bake.go#newcode27 cmd/godoc/bake.go:27: varName = flag.String("var", "bakedFiles", "Map variable name") On 2013/08/15 ...
11 years, 10 months ago (2013-08-15 06:52:17 UTC) #7
r
LGTM
11 years, 10 months ago (2013-08-15 06:55:33 UTC) #8
ahormann
https://codereview.appspot.com/12978043/diff/14001/cmd/godoc/bake.go File cmd/godoc/bake.go (right): https://codereview.appspot.com/12978043/diff/14001/cmd/godoc/bake.go#newcode13 cmd/godoc/bake.go:13: // of foo.txt and bar.txt. s/foo.txt/foo.html/
11 years, 10 months ago (2013-08-15 08:09:10 UTC) #9
adg
PTAL I forgot about the -templates flag, which is actually pretty handy. So I introduced ...
11 years, 10 months ago (2013-08-15 23:45:48 UTC) #10
bradfitz
I still don't like the template.go auto-generated file. It will forever produce gigantic diffs too ...
11 years, 10 months ago (2013-08-16 00:07:22 UTC) #11
adg
On 16 August 2013 10:07, Brad Fitzpatrick <bradfitz@golang.org> wrote: > with a string and line ...
11 years, 10 months ago (2013-08-16 00:11:59 UTC) #12
bradfitz
On Thu, Aug 15, 2013 at 5:11 PM, Andrew Gerrand <adg@golang.org> wrote: > > On ...
11 years, 10 months ago (2013-08-16 00:17:00 UTC) #13
adg
+r The previous version of this tool stored the data as raw strings. Rob asked ...
11 years, 10 months ago (2013-08-16 00:19:54 UTC) #14
bradfitz
My version doesn't use a raw string and only a subset of ASCII goes through ...
11 years, 10 months ago (2013-08-16 00:26:07 UTC) #15
r
The engineering level of this makes the work on the garbage collector seem a mere ...
11 years, 10 months ago (2013-08-16 00:39:26 UTC) #16
rsc
i haven't looked at the cl but fwiw var x = `big string` will compile ...
11 years, 10 months ago (2013-08-16 00:45:59 UTC) #17
adg
To address the concerns raised by Brad and Russ I have switched to using raw ...
11 years, 10 months ago (2013-08-16 00:59:15 UTC) #18
r
That's unfortunate and silly but you play the hand you're dealt. Andrew, with apologies I ...
11 years, 10 months ago (2013-08-16 00:59:39 UTC) #19
r
LGTM
11 years, 10 months ago (2013-08-16 01:02:01 UTC) #20
adg
11 years, 10 months ago (2013-08-16 01:44:40 UTC) #21
*** Submitted as
https://code.google.com/p/go/source/detail?r=2c0ddaee5449&repo=tools ***

cmd/godoc: bake templates and scripts into godoc binary

Add godoc/vfs/mapfs package for serving baked files.

Fixes issue 6010.

R=golang-dev, bradfitz, r, arnehormann, rsc
CC=golang-dev
https://codereview.appspot.com/12978043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b