Powerful Command-Line Applications in Go (Pragmatic Bookshelf)
Latest Threads About This Book 
                               
                            
 
                             
          
                Hi, in the table driven tests on page 241 the ListAction test requires args: hosts field but it’s missing. 
Suggested fix: 
		{
			name: ...
              
            
            
          
              New
 
          
                In the comment for “type content struct”:   “… HTML content tto add…”
              
            
            
          
              New
 
          
                Tests on compare 2 slice of byte fail because there is a difference in the formatting we get after the parseContent() and goldenFile func...
              
            
            
          
              New
 
          
                @rgerardi 
Problem
As I am working my way through the book today in August of 2024, it appears that blackfriday (v2.1.0) no longer works....
              
            
            
          
              New
 
          
                The file produced by os.WriteFile() on Windows is not CRLF, but the golden file is very likely CRLF because Windows. Until the reader man...
              
            
            
          
              New
 
          
                The book says “we instruct the scanner to read words instead by setting the Split() function of the scanner”. But what is really done is ...
              
            
            
          
              New
 
          
                The book states “Upon initializing a new module, Go creates a file go.mod in the root of your 
module directory” but, at least in Go 1.20...
              
            
            
          
              New
 
          
                @rgerardi
Title: Name of book: description (page number) 
Powerful Command-Line Applications in Go (page 9) 
I am using Windows to devel...
              
            
            
          
              New
 
          
                When creating the first cli client for the Todo api,the working file is hardcoded as “.todo.json”. In the main_test.go users are never in...
              
            
            
          
              New
 
          
                @rgerardi 
Title: Powerful Command-Line Applications in Go (page 35 - ebook edition) 
Integration test fails do to a superfluous blank in...
              
            
            
          
              New
 
          
                In func TestLoadNoFile , we create a temp file, delete it, and try to load it. 
The test is incorrectly written to expect a nil error whe...
              
            
            
          
              New
 
          
                Title:  Powerful Command Line Applications in Go 
“CHAPTER 1 - Your First Command-Line Program in Go/Adding Command-Line Flags” there is ...
              
            
            
          
              New
 
          
                Hello all. 
Creating this space here for general discussion and chat about Powerful Command-Line Applications In Go 
In particular, we ca...
              
            
            
          
              New
 
          
                Is there any place where we can discuss the solutions to some of the exercises? I can figure most of them out, but am having trouble with...
              
            
            
          
              New
 
          
                “My speaking at the first Gophercon” 
on the official website, it is “GopherCon”
              
            
            
          
              New
 
          
                Sorry, have the epub and Google books says page 10-11: 
“I eralized that”
              
            
            
          
              New
 
          
                flags.Usage is introduced on page 32. On Page 35, if the reader leaves that code in their application, the ListTasks test will fail becau...
              
            
            
          
              New
 
          
                Title: Powerful Command-Line Aplications in Go (page xiii) small typo in description of Chapter 9 
Example: “You’ll external packages to ...
              
            
            
          
              New
 
          
                Title: Powerful command line applications in Go  (page 13) 
A method is a function that is associated to an specific type. 
“an specific”
              
            
            
          
              New
 
          
                Title: Name of book: Powerful Command Line Applications in Go (page 7) 
Could you put the update to TestCountWords before the new TestCou...
              
            
            
          
              New
 
          
                Title: Powerful Command Line Applications In Go  (page 6) 
The comment in the update count func reads 
// A scanner is used to read text...
              
            
            
          
              New
 
          
                Powerful Command-Line Applications in Go by @rgerardi (pp. 385-387) 
You might want to mention modernc.org/sqlite as an alternative that ...
              
            
            
          
              New
 
          
                @rgerardi 
On a later page, the author writes “Before running the tests, delete the file .todo.json if it exists from a previous test or ...
              
            
            
          
              New
 
          
                Paragraph 3. 
Before you can use these external packages in your program, you need to install them in your local machine. In Go, you inst...
              
            
            
          
              New
 
          
                In chapter 8, Talking to REST APIs, section Testing the REST API Server, the following snippet in server_test.go triggers a warning from ...
              
            
            
          
              New
 
          
                Go is a modern programming language that combines the reliability of compiled languages with the ease of use and flexibility of dynamic t...
              
            
            
              
          
              New
Most Active This Week
                           
                        
                        
                        Most Active This Month
                           
                        
                        
                                   
                        Most Active This Year
                           
                        
                        
                         
          
                @rgerardi 
Problem
As I am working my way through the book today in August of 2024, it appears that blackfriday (v2.1.0) no longer works....
              
            
            
          
              New
 
          
                Tests on compare 2 slice of byte fail because there is a difference in the formatting we get after the parseContent() and goldenFile func...
              
            
            
          
              New
 
          
                In the comment for “type content struct”:   “… HTML content tto add…”
              
            
            
          
              New
 
          
                Hi, in the table driven tests on page 241 the ListAction test requires args: hosts field but it’s missing. 
Suggested fix: 
		{
			name: ...
              
            
            
          
              New
Most Active Last Three Years
                           
                        
                        
                         
          
                When creating the first cli client for the Todo api,the working file is hardcoded as “.todo.json”. In the main_test.go users are never in...
              
            
            
          
              New
 
          
                The book says “we instruct the scanner to read words instead by setting the Split() function of the scanner”. But what is really done is ...
              
            
            
          
              New
 
          
                @rgerardi
Title: Name of book: description (page number) 
Powerful Command-Line Applications in Go (page 9) 
I am using Windows to devel...
              
            
            
          
              New
 
          
                The book states “Upon initializing a new module, Go creates a file go.mod in the root of your 
module directory” but, at least in Go 1.20...
              
            
            
          
              New
 
          
                The file produced by os.WriteFile() on Windows is not CRLF, but the golden file is very likely CRLF because Windows. Until the reader man...
              
            
            
          
              New
Most Active Over Three Years
                           
                        
                        
                         
          
                Go is a modern programming language that combines the reliability of compiled languages with the ease of use and flexibility of dynamic t...
              
            
            
              
          
              New
 
          
                Hello all. 
Creating this space here for general discussion and chat about Powerful Command-Line Applications In Go 
In particular, we ca...
              
            
            
          
              New
 
          
                Is there any place where we can discuss the solutions to some of the exercises? I can figure most of them out, but am having trouble with...
              
            
            
          
              New
 
          
                Title: Powerful Command Line Applications In Go  (page 6) 
The comment in the update count func reads 
// A scanner is used to read text...
              
            
            
          
              New
 
          
                In chapter 8, Talking to REST APIs, section Testing the REST API Server, the following snippet in server_test.go triggers a warning from ...
              
            
            
          
              New
 
          
                Title: Powerful command line applications in Go  (page 13) 
A method is a function that is associated to an specific type. 
“an specific”
              
            
            
          
              New
 
          
                Title:  Powerful Command Line Applications in Go 
“CHAPTER 1 - Your First Command-Line Program in Go/Adding Command-Line Flags” there is ...
              
            
            
          
              New
 
          
                Paragraph 3. 
Before you can use these external packages in your program, you need to install them in your local machine. In Go, you inst...
              
            
            
          
              New
 
          
                flags.Usage is introduced on page 32. On Page 35, if the reader leaves that code in their application, the ListTasks test will fail becau...
              
            
            
          
              New
 
          
                Title: Name of book: Powerful Command Line Applications in Go (page 7) 
Could you put the update to TestCountWords before the new TestCou...
              
            
            
          
              New
 
          
                Sorry, have the epub and Google books says page 10-11: 
“I eralized that”
              
            
            
          
              New
 
          
                In func TestLoadNoFile , we create a temp file, delete it, and try to load it. 
The test is incorrectly written to expect a nil error whe...
              
            
            
          
              New
 
          
                @rgerardi 
Title: Powerful Command-Line Applications in Go (page 35 - ebook edition) 
Integration test fails do to a superfluous blank in...
              
            
            
          
              New
 
          
                “My speaking at the first Gophercon” 
on the official website, it is “GopherCon”
              
            
            
          
              New
 
          
                Title: Powerful Command-Line Aplications in Go (page xiii) small typo in description of Chapter 9 
Example: “You’ll external packages to ...
              
            
            
          
              New
  
        Publisher: 
        Pragmatic Bookshelf
    
      
      
      
    
      
      
        
      
      
          
      
        
        
        
      
        
			
      
      
      
			
      
    
Latest in Powerful Command-Line Applications in Go
Get money off!
 
            The Pragmatic Bookshelf
35% off any eBook
Use the coupon code "devtalk.com" to get 35% off any eBook published by PragProg!






