---
title: Use inclusive language in variable names
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 variable names
---

# Use inclusive language in variable names

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

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

{% /callout %}

## Metadata{% #metadata %}

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

**Language:** Go

**Severity:** Notice

**Category:** Best Practices

## Description{% #description %}

Use inclusive language in variables.

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

```go
func myFunc(){
    var snow_white string

    whitelist := "foo"
    namesWhitelist := []{"bla"}];

    names_blaCKlist := "bla";

    addr_master_ip := "5.4.3.8";
    addr_slave_ip := "1.2.3.4";

    slave := struct {
		ipAddress string
	}{
		"127.0.0.1"
	}
	fmt.Println(slave)
    return nil
}
```

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

```go
func myFunc(){
    var snow_white string

    allowlist := "foo"
    namesAllowlist := []{"bla"}];

    names_denylist := "bla";

    addr_primary_ip := "5.4.3.8";
    addr_secondary_ip := "1.2.3.4";
    return nil
}
```
  Seamless integrations. Try Datadog Code SecurityDatadog Code Security 
{% icon name="icon-external-link" /%}
 