Skip to content

Instantly share code, notes, and snippets.

@roktas
Created May 13, 2016 19:14
Show Gist options
  • Save roktas/e649ef2ce98ab33ad5fd8350c0a8477c to your computer and use it in GitHub Desktop.
Save roktas/e649ef2ce98ab33ad5fd8350c0a8477c 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