File size: 9,425 Bytes
2267554
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  …   @@ -1,13 +1,15 @@                                 …                                                   
  1   package main                                      1   package main                                    
  2                                                     2                                                   
  3   import (                                          3   import (                                        
  4       "fmt"                                         4       "fmt"                                       
                                                        5 +     "strings"                                   
  5   )                                                 6   )                                               
  6                                                     7                                                   
  7   func main() {                                     8   func main() {                                   
  8       fmt.Println(getContent())                     9       fmt.Println(getContent())                   
  9   }                                                10   }                                               
 10                                                    11                                                   
 11   func getContent() string {                       12   func getContent() string {                      
 12 -     return "Hello, world!"                       13 +     content := strings.ToUpper("Hello, World!") 
                                                       14 +     return content                              
 13   }                                                15   }