Skip to content

Commit

Permalink
- format go code
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketlaunchr-cto committed Apr 6, 2020
1 parent ba2590e commit fb74aca
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test_files/test_sample.igo
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
)

func isPalindrome(m *string) (bool, error) {
// Defer Go sample code
defer go fmt.Println("Palindrome function called!")
// Defer Go sample code
defer go fmt.Println("Palindrome function called!")

valB := ""

Expand All @@ -25,20 +25,20 @@ func isPalindrome(m *string) (bool, error) {
func main() {

// Address Operator sample code
words := []*string{&"civic", &`relation`}
words := []*string{&"civic", &`relation`}

for _, word := range words {
for _, word := range words {

// Must sample code
valid := must(isPalindrome(word))
if valid {
fmt.Printf("%s is a valid palindrome.\n", *word)
} else {
fmt.Printf("%s is not a valid palindrome.\n", *word)
}
// Must sample code
valid := must(isPalindrome(word))
if valid {
fmt.Printf("%s is a valid palindrome.\n", *word)
} else {
fmt.Printf("%s is not a valid palindrome.\n", *word)
}

// Fordefer sample code
fordefer fmt.Printf("done processing word '%s'\n", *word)
}
// Fordefer sample code
fordefer fmt.Printf("done processing word '%s'\n", *word)
}

}

0 comments on commit fb74aca

Please sign in to comment.