# Go · go doc

Real 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.

> Source: https://appgram.github.io/docsy/go-sdk  
> Language: go  
> Symbols: 4 across 3 categories

## Categories

- [Interfaces](#interfaces) — 1 items
- [Structs](#structs) — 1 items
- [Greeter](#greeter) — 2 items

## Interfaces

### `Formatter`  <sub>interface</sub>

Formatter describes a greeting provider.

```go
type Formatter interface {
	// Greet creates a greeting for the named reader.
	Greet(name string) string
}
```

## Structs

### `Greeter`  <sub>struct</sub>

Greeter builds personalized greetings without network access.

**Properties**

| Name | Type | Required | Description | Default |

| --- | --- | --- | --- | --- |

| `Prefix` | `string` | ✓ |  |  |

```go
type Greeter struct {
	// Prefix overrides the default salutation when non-empty.
	Prefix string
}
```

**Example**

```go
g := Greeter{Prefix: "Welcome"}
fmt.Println(g.Greet("Docsy"))
```

## Greeter

### `Greeter.Greet`  <sub>method</sub>

Greet returns a friendly greeting for name.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `name` | `string` | ✓ |  |

**Returns** — `string`

```go
func (g Greeter) Greet(name string) string
```

**Example**

```go
greeting := Greeter{}.Greet("Ada")
```

---

### `Greeter.GreetMany`  <sub>method</sub>

GreetMany greets several readers while preserving input order.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `names` | `[]string` | ✓ |  |

**Returns** — `[]string`

```go
func (g Greeter) GreetMany(names []string) []string
```

**Example**

```go
greetings := Greeter{}.GreetMany([]string{"Ada", "Linus"})
```
