<commit_before>## Go SDK

Connect the SDK to Hydra:
```go
import "github.com/ory-am/hydra/sdk"

var hydra, err = sdk.Connect(
    sdk.ClientID("client-id"),
    sdk.ClientSecret("client-secret"),
    sdk.ClusterURL("https://localhost:4444"),
)
```

Manage OAuth Clients using [`ory-am/hydra/client.HTTPManager`](/client/manager_http.go):

```go
import "github.com/ory-am/hydra/client"

// Create a new OAuth2 client
var newClient = client.Client{
	ID:                "deadbeef",
	Secret:            "sup3rs3cret",
	RedirectURIs:      []string{"http://yourapp/callback"},
	// ...
}
var err = hydra.Client.CreateClient(&newClient)

// Retrieve newly created client
var result, err = hydra.Client.GetClient(newClient.ID)

// Remove the newly created client
var err = hydra.Client.DeleteClient(newClient.ID)

// Retrieve list of all clients
var clients, err = hydra.Client.GetClients()
```

Manage SSO Connections using [`ory-am/hydra/connection.HTTPManager`](connection/manager_http.go):
```go
import "github.com/ory-am/hydra/connection"

// Create a new connection
var sso = connection.Connection{
    Provider: "login.google.com",
    LocalSubject: "bob",
    RemoteSubject: "googleSubjectID",
}
var err = hydra.SSO.Create(&sso)

// Retrieve newly created connection
var result, err := hydra.SSO.Get(sso.ID)

// Delete connection
var err = hydra.SSO.Delete(sso.ID)

// Find a connection by subject
var ssoConns, err = hydra.SSO.FindAllByLocalSubject("bob")
var ssoConns, err = hydra.SSO.FindByRemoteSubject("login.google.com", "googleSubjectID")
```

Manage policies using [`ory-am/hydra/policy.HTTPManager`](policy/manager_http.go):
```go
import "github.com/ory-am/ladon"

// Create a new policy
// allow user to view his/her own photos
newPolicy, err := hydra.Policy.Create(&ladon.DefaultPolicy{
    ID: "1234", // ID is not required
    Subjects: []string{"bob"},
    Resources: []string{"urn:media:images"},
    Actions: []string{"get", "find"},
    Effect: ladon.AllowAccess,
    Conditions: ladon.Conditions{
        "owner": &ladon.EqualSubjectCondition{},
    },
})

// Retrieve a stored policy<commit_msg>docs/sdk: fix typo in policy condition<commit_after>## Go SDK

Connect the SDK to Hydra:
```go
import "github.com/ory-am/hydra/sdk"

var hydra, err = sdk.Connect(
    sdk.ClientID("client-id"),
    sdk.ClientSecret("client-secret"),
    sdk.ClusterURL("https://localhost:4444"),
)
```

Manage OAuth Clients using [`ory-am/hydra/client.HTTPManager`](/client/manager_http.go):

```go
import "github.com/ory-am/hydra/client"

// Create a new OAuth2 client
var newClient = client.Client{
	ID:                "deadbeef",
	Secret:            "sup3rs3cret",
	RedirectURIs:      []string{"http://yourapp/callback"},
	// ...
}
var err = hydra.Client.CreateClient(&newClient)

// Retrieve newly created client
var result, err = hydra.Client.GetClient(newClient.ID)

// Remove the newly created client
var err = hydra.Client.DeleteClient(newClient.ID)

// Retrieve list of all clients
var clients, err = hydra.Client.GetClients()
```

Manage SSO Connections using [`ory-am/hydra/connection.HTTPManager`](connection/manager_http.go):
```go
import "github.com/ory-am/hydra/connection"

// Create a new connection
var sso = connection.Connection{
    Provider: "login.google.<EMAIL>",
    LocalSubject: "bob",
    RemoteSubject: "googleSubjectID",
}
var err = hydra.SSO.Create(&sso)

// Retrieve newly created connection
var result, err := hydra.SSO.Get(sso.ID)

// Delete connection
var err = hydra.SSO.Delete(sso.ID)

// Find a connection by subject
var ssoConns, err = hydra.SSO.FindAllByLocalSubject("bob")
var ssoConns, err = hydra.SSO.FindByRemoteSubject("login.google.com", "googleSubjectID")
```

Manage policies using [`ory-am/hydra/policy.HTTPManager`](policy/manager_http.go):
```go
import "github.com/ory-am/ladon"

// Create a new policy
// allow user to view his/her own photos
newPolicy, err := hydra.Policy.Create(&ladon.DefaultPolicy{
    ID: "1234", // ID is not required
    Subjects: []string{"bob"},
    Resources: []string{"urn:media:images"},
    Actions: []string{"get", "find"},
    Effect: ladon.AllowAccess,
    Conditions: ladon.Conditions{
        "owner": &ladon.EqualsSubjectCondition{},
    },
})

// Retrieve a stored policy
{'fraction_non_alphanumeric': 0.15178571428571427, 'fraction_numerical': 0.005169172932330827, 'mean_word_length': 4.014134275618375, 'pattern_counts': {'":': 2, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5165974', 'n_tokens_mistral': 1475, 'n_tokens_neox': 1394, 'n_words': 330}