mirror of
				https://github.com/go-delve/delve.git
				synced 2025-11-01 03:42:59 +08:00 
			
		
		
		
	 ab7367ed2b
			
		
	
	ab7367ed2b
	
	
	
		
			
			* cmd/dlv: fall back to go env GOPATH when GOPATH envvar is unset. Since Go 1.8, GOPATH environment variable has a default value if the environment variable is unset so not setting GOPATH is perfectly ok. Depend on `go env` command to query Go related environment variable. * build: update references to moved packages
		
			
				
	
	
		
			24 lines
		
	
	
		
			421 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			421 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package main
 | |
| 
 | |
| import (
 | |
| 	"bufio"
 | |
| 	"log"
 | |
| 	"os"
 | |
| 
 | |
| 	"github.com/derekparker/delve/pkg/terminal"
 | |
| )
 | |
| 
 | |
| func main() {
 | |
| 	fh, err := os.Create(os.ExpandEnv("$GOPATH/src/github.com/derekparker/delve/Documentation/cli/README.md"))
 | |
| 	if err != nil {
 | |
| 		log.Fatalf("could not create README.md: %v", err)
 | |
| 	}
 | |
| 	defer fh.Close()
 | |
| 
 | |
| 	w := bufio.NewWriter(fh)
 | |
| 	defer w.Flush()
 | |
| 
 | |
| 	commands := terminal.DebugCommands(nil)
 | |
| 	commands.WriteMarkdown(w)
 | |
| }
 |