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

Side by Side Diff: 2013/distsys/finger.go

Issue 87910043: code review 87910043: go.talks: fix build; add "// +build OMIT" to many samples (Closed)
Patch Set: diff -r 64c0764808ba https://code.google.com/p/go.talks Created 9 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « 2013/distsys/addr5.go ('k') | 2013/distsys/hello.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // +build OMIT
2
1 package main 3 package main
2 4
3 import ( 5 import (
4 "bufio" 6 "bufio"
5 "io" 7 "io"
6 "log" 8 "log"
7 "net" 9 "net"
8 "os" 10 "os"
9 "os/exec" 11 "os/exec"
10 ) 12 )
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 l, err := b.ReadString('\n') 48 l, err := b.ReadString('\n')
47 if err != nil { 49 if err != nil {
48 return 50 return
49 } 51 }
50 52
51 cmd := exec.Command("finger", l[:len(l)-1]) 53 cmd := exec.Command("finger", l[:len(l)-1])
52 cmd.Stdout = c 54 cmd.Stdout = c
53 cmd.Stderr = c 55 cmd.Stderr = c
54 cmd.Run() 56 cmd.Run()
55 } 57 }
OLDNEW
« no previous file with comments | « 2013/distsys/addr5.go ('k') | 2013/distsys/hello.go » ('j') | no next file with comments »

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