From fb74acace4fa06bea51c8bdf6b792ad1f1cbf56f Mon Sep 17 00:00:00 2001 From: rocketlaunchr-cto Date: Mon, 6 Apr 2020 13:53:48 +1000 Subject: [PATCH] - format go code --- test_files/test_sample.igo | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/test_files/test_sample.igo b/test_files/test_sample.igo index bf97f75..0dbc1ac 100644 --- a/test_files/test_sample.igo +++ b/test_files/test_sample.igo @@ -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 := "" @@ -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) + } }