<commit_before># buildkite-go [![GoDoc](https://img.shields.io/badge/godoc-Reference-brightgreen.svg?style=flat)](http://godoc.org/github.com/wolfeidau/go-buildkite) [![Build status](https://badge.buildkite.com/f7561b01d3f2886b819d0825464bf9a3c90cd0d0a1a96a517d.svg)](https://buildkite.com/mark-at-wolfe-dot-id-dot-au/go-buildkite)

A [golang](http://golang.org) client for the [buildkite](https://buildkite.com/) API. This project draws a lot of it's structure and testing methods from [go-github](https://github.com/google/go-github).

# Usage

To get the package, execute:

```
go get gopkg.in/wolfeidau/go-buildkite.v1
```

Simple shortened example for listing all pipelines is provided below, see examples for more.

```go
import (
    "gopkg.in/wolfeidau/go-buildkite.v1"
)
...

config, err := buildkite.NewTokenConfig(*apiToken)

if err != nil {
	log.Fatalf("client config failed: %s", err)
}

client := buildkite.NewClient(config.Client())

pipelines, _, err := client.Pipelines.List(*org, nil)

```

# Disclaimer
<commit_msg>Add reference to v2 in README<commit_after># buildkite-go [![GoDoc](https://img.shields.io/badge/godoc-Reference-brightgreen.svg?style=flat)](http://godoc.org/github.com/wolfeidau/go-buildkite) [![Build status](https://badge.buildkite.com/f7561b01d3f2886b819d0825464bf9a3c90cd0d0a1a96a517d.svg)](https://buildkite.com/mark-at-wolfe-dot-id-dot-au/go-buildkite)

A [golang](http://golang.org) client for the [buildkite](https://buildkite.com/) API. This project draws a lot of it's structure and testing methods from [go-github](https://github.com/google/go-github).

# Usage

To get the package, execute:

```
go get gopkg.in/wolfeidau/go-buildkite.v2
```

Simple shortened example for listing all pipelines is provided below, see examples for more.

```go
import (
    "gopkg.in/wolfeidau/go-buildkite.v2"
)
...

config, err := buildkite.NewTokenConfig(*apiToken)

if err != nil {
	log.Fatalf("client config failed: %s", err)
}

client := buildkite.NewClient(config.Client())

pipelines, _, err := client.Pipelines.List(*org, nil)

```

# Disclaimer

{'fraction_non_alphanumeric': 0.16122840690978887, 'fraction_numerical': 0.034069097888675626, 'mean_word_length': 4.923295454545454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '4566889', 'n_tokens_mistral': 850, 'n_tokens_neox': 789, 'n_words': 143}