+ + + +```go +package main + +import ( + "fmt" + + "github.com/princjef/gomarkdoc/testData/lang/function" +) + +func main() { + // Comment + res, _ := function.Standalone(2, "abc") + fmt.Println(res) +} +``` + +#### Output + +``` +2 +``` + +
++ + + +```go +package main + +import ( + "fmt" + + "github.com/princjef/gomarkdoc/testData/lang/function" +) + +func main() { + res, _ := function.Standalone(0, "def") + fmt.Println(res) +} +``` + +#### Output + +``` +0 +``` + +
++ + + +```go +package main + +import ( + "github.com/princjef/gomarkdoc/testData/lang/function" +) + +func main() { + r := function.Generic[int]{} + r.WithGenericReceiver() +} +``` + +
++ + + +```go +package main + +import ( + "fmt" + + "github.com/princjef/gomarkdoc/testData/lang/function" +) + +func main() { + // Add some comments + r := &function.Receiver{} + // And some more + fmt.Println(r) +} +``` + +
++ + + +```go +package main + +import ( + "github.com/princjef/gomarkdoc/testData/lang/function" +) + +func main() { + var r function.Receiver + r.WithReceiver() +} +``` + +
+