Skip to content

Instantly share code, notes, and snippets.

@huseyin
Forked from roktas/merhaba.go.md
Created May 15, 2016 23:22
Show Gist options
  • Save huseyin/5ef49028655ef035d8426d7478424600 to your computer and use it in GitHub Desktop.
Save huseyin/5ef49028655ef035d8426d7478424600 to your computer and use it in GitHub Desktop.

Merhaba Dünya

Falan filan falan.

    package main

    import "fmt"

    func hello() string {
            return "Merhaba Dünya"
    }

    func main() {
            fmt.Println(hello())
    }

Test

Filan falan filan.

    package main

    import "testing"

    func TestHello(t *testing.T) {
            expected := "Merhaba Dünya"
            if actual := hello(); actual != expected {
                    t.Errorf("expected '%s', got '%s'", expected, actual)
            }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment