mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 03:34:15 +08:00
fix: coding style and file format for all example.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var origS string = "Hi there! "
|
||||
var newS string
|
||||
|
||||
newS = strings.Repeat(origS, 3)
|
||||
fmt.Printf("The new repeated string is: %s\n", newS)
|
||||
}
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var origS string = "Hi there! "
|
||||
var newS string
|
||||
|
||||
newS = strings.Repeat(origS, 3)
|
||||
fmt.Printf("The new repeated string is: %s\n", newS)
|
||||
}
|
||||
|
Reference in New Issue
Block a user