on 94de6bc help sign in
16 lines 9.4 kB history raw
1  …  @@ -1,13 +1,15 @@    …   
2  1  package main   1  package main 
3  2     2   
4  3  import (   3  import ( 
5  4   "fmt"   4   "fmt" 
6       5 +  "strings" 
7  5  )   6  ) 
8  6     7   
9  7  func main() {   8  func main() { 
10  8   fmt.Println(getContent())   9   fmt.Println(getContent()) 
11  9  }  10  } 
12 10    11   
13 11  func getContent() string {  12  func getContent() string { 
14 12 -  return "Hello, world!"  13 +  content := strings.ToUpper("Hello, World!") 
15      14 +  return content 
16 13  }  15  }