Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrefixLine ¶
PrefixLine prefixes all lines in a buffer
Example ¶
package main import ( "bytes" "log" "net/http" "net/http/httputil" "strings" ) func init() { debugging = true } func main() { const body = "Go is a general-purpose language designed with systems programming in mind." req, err := http.NewRequest("PUT", "http://www.example.org", strings.NewReader(body)) if err != nil { log.Fatal(err) } dump, err := httputil.DumpRequestOut(req, true) if err != nil { panic(err) } b := bytes.NewBuffer(dump) PrefixLine(b, "> ", 1) }
Output:
Types ¶
type SourceError ¶
SourceError represents an errror in the srouce code
func ScanSourceError ¶
func ScanSourceError(message string) []SourceError
ScanSourceError takes the log of a process and returns it's sourcecode errors
Click to show internal directories.
Click to hide internal directories.