Created
October 3, 2014 16:50
-
-
Save mschoch/6d974ef1cb0e0874164a to your computer and use it in GitHub Desktop.
golang present tool show line numbers?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ go get -u code.google.com/p/go.tools/cmd/present | |
$ present -orighost=localhost | |
2014/10/03 09:49:52 Open your web browser and visit http://localhost:3999 | |
2014/10/03 09:49:57 accepting connection from: 127.0.0.1:50701 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Println("hello") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Title | |
Sub-title | |
7 Oct 2014 | |
Marty Schoch | |
[email protected] | |
* Show code with line numbers | |
.code -numbers x.go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I worked around this by modifying styles.css to include: