This is a wrapper library of the airflow-client-go library. The library is written in Go and allows your to create clients with interface methods to interact with the Apache Airflow REST API.
To use this library, you need to have Go installed on your machine. You can download and install Go from here.
To import the library in your project, you can use the following command:
import "github.com/DeloitteOptimalReality/airflow-wrapper-go/pkg/client"
To setup a client, you can use the following code:
c := client.NewAirflowClient("localhost:8080", "http", "airflow", "airflow")
To get a DAG, you can use the following code:
dag, err := c.GetDag("dag_id")