Please use go fmt to format the code

This commit is contained in:
honggengwei
2014-10-23 14:56:35 +08:00
parent 1b8fc48341
commit 60fe917ec1

View File

@@ -1,10 +1,10 @@
package main
import (
"flag"
"fmt"
"github.com/fatih/color"
"github.com/getwe/figlet4go"
"flag"
)
var flag_str = flag.String("str", "golang", "input string")
@@ -29,7 +29,7 @@ func main() {
options := figlet4go.NewRenderOptions()
options.FontColor = make([]color.Attribute, len(str))
for i := range options.FontColor {
options.FontColor[i] = colors[i % len(colors)]
options.FontColor[i] = colors[i%len(colors)]
}
renderStr, _ = ascii.RenderOpts(str, options)
fmt.Println(renderStr)