---
title: Use inclusive language in type declarations
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > Code Security > Static Code Analysis (SAST) > SAST
  Rules > Use inclusive language in type declarations
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Use inclusive language in type declarations

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}

{% /callout %}

## Metadata{% #metadata %}

**ID:** `go-inclusive/types`

**Language:** Go

**Severity:** Notice

**Category:** Best Practices

## Description{% #description %}

Use inclusive language in types definitions.

## Non-Compliant Code Examples{% #non-compliant-code-examples %}

```go
import "fmt"

type Master struct {
	ipAddress string
}

type MasterType Master

type (
	Slave        int
	BlaCKlist    []Master
	myWhiteLists [][]string
)

func main() {
	// Variable names caught in variables rule
	master := Master{ipAddress: "127.0.0.1"}
	master2 := new(Master)
	master3 := make(Blacklist, 0, 0)

	fmt.Println(master)
	fmt.Println(master2)
	fmt.Println(master3)
}
```

## Compliant Code Examples{% #compliant-code-examples %}

```go
type dog struct {
	name string
	age  int
}

func main() {
	cat := struct {
		name string
		age  int
	}{
		"Ginger",
		11,
	}
	fmt.Println(cat)

	dog := dog{name: "Oreo", age: 12}

	fmt.Println(dog)

}
```
  Seamless integrations. Try Datadog Code SecurityDatadog Code Security 
{% icon name="icon-external-link" /%}
 