{"schemaVersion":1,"title":"Go · go doc","url":"https://appgram.github.io/docsy/go-sdk","markdownUrl":"https://appgram.github.io/docsy/format-md/go-sdk","jsonUrl":"https://appgram.github.io/docsy/agent/pages/go-sdk.json","version":"current","locale":"en","markdown":"# Go · go doc\n\nReal go doc -all output from the checked-in go fixture source. Generated artifacts, commands, versions, and SHA-256 hashes are recorded under sources/native. This is a teaching library, not a published SDK.\n\n> Source: https://appgram.github.io/docsy/go-sdk  \n> Language: go  \n> Symbols: 4 across 3 categories\n\n## Categories\n\n- [Interfaces](#interfaces) — 1 items\n- [Structs](#structs) — 1 items\n- [Greeter](#greeter) — 2 items\n\n## Interfaces\n\n### `Formatter`  <sub>interface</sub>\n\nFormatter describes a greeting provider.\n\n```go\ntype Formatter interface {\n\t// Greet creates a greeting for the named reader.\n\tGreet(name string) string\n}\n```\n\n## Structs\n\n### `Greeter`  <sub>struct</sub>\n\nGreeter builds personalized greetings without network access.\n\n**Properties**\n\n| Name | Type | Required | Description | Default |\n\n| --- | --- | --- | --- | --- |\n\n| `Prefix` | `string` | ✓ |  |  |\n\n```go\ntype Greeter struct {\n\t// Prefix overrides the default salutation when non-empty.\n\tPrefix string\n}\n```\n\n**Example**\n\n```go\ng := Greeter{Prefix: \"Welcome\"}\nfmt.Println(g.Greet(\"Docsy\"))\n```\n\n## Greeter\n\n### `Greeter.Greet`  <sub>method</sub>\n\nGreet returns a friendly greeting for name.\n\n**Parameters**\n\n| Name | Type | Required | Description |\n\n| --- | --- | --- | --- |\n\n| `name` | `string` | ✓ |  |\n\n**Returns** — `string`\n\n```go\nfunc (g Greeter) Greet(name string) string\n```\n\n**Example**\n\n```go\ngreeting := Greeter{}.Greet(\"Ada\")\n```\n\n---\n\n### `Greeter.GreetMany`  <sub>method</sub>\n\nGreetMany greets several readers while preserving input order.\n\n**Parameters**\n\n| Name | Type | Required | Description |\n\n| --- | --- | --- | --- |\n\n| `names` | `[]string` | ✓ |  |\n\n**Returns** — `[]string`\n\n```go\nfunc (g Greeter) GreetMany(names []string) []string\n```\n\n**Example**\n\n```go\ngreetings := Greeter{}.GreetMany([]string{\"Ada\", \"Linus\"})\n```\n"}