func getWG()

in go/wg.go [65:77]


func getWG(ctx context.Context, athenaService athenaiface.AthenaAPI, Name string) (*athena.WorkGroup, error) {
	if athenaService == nil {
		return nil, ErrAthenaNilAPI
	}
	getWorkGroupOutput, err := athenaService.GetWorkGroupWithContext(ctx,
		&athena.GetWorkGroupInput{
			WorkGroup: aws.String(Name),
		})
	if err != nil {
		return nil, err
	}
	return getWorkGroupOutput.WorkGroup, nil
}