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
    
  
  
    
  | import "net/http" | |
| func makeRequest(url string, response *http.Response) GenericFunction { | |
| return func() error { | |
| resp, err := http.Get(url) | |
| if err != nil { | |
| return err | |
| } | |
| response = resp | |
| return nil | 
  
    
      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
    
  
  
    
  | import ( | |
| "bytes" | |
| "debug" | |
| "fmt" | |
| "sync" | |
| ) | |
| // Alias for a function that takes no args and returns an error | |
| type GenericFunction func() error | 
NewerOlder