ficsit-cli-flake/ficsit/root.go

13 lines
208 B
Go
Raw Normal View History

2021-12-02 04:00:33 +00:00
package ficsit
import (
"net/http"
"github.com/Khan/genqlient/graphql"
"github.com/spf13/viper"
)
func InitAPI() graphql.Client {
return graphql.NewClient(viper.GetString("api"), http.DefaultClient)
}