Falan filan falan.
package main
import "fmt"
func hello() string {
return "Merhaba Dünya"
}
func main() {
fmt.Println(hello())
}
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)
}
}