Skip to content

Instantly share code, notes, and snippets.

@tzafrirben
Created November 3, 2019 21:34
Show Gist options
  • Save tzafrirben/6d480b5933c3427a164735d39a072b89 to your computer and use it in GitHub Desktop.
Save tzafrirben/6d480b5933c3427a164735d39a072b89 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
space := ""
for _, c := range "Hello World" {
fmt.Println(space + string(c))
space += " "
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment