andygrunwald / andygrunwald/go-jira

Think about to make use of functional options

Đang mở
#479 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
breaking-change v2
Ngôn ngữ chính
Go
Star
1.6k
Fork
500
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Context

Many API endpoints (or even the "NewClient" function) make use of optional options.
Those are very often a struct. If you don't require options, you pass nil.

An alternative would be https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis

## Goal of this task

* Think about this solution, if this is feasible
* Start a prototype / proof of concept

This request comes from https://github.com/andygrunwald/go-jira/issues/200.
An own ticket was created to keep the development contained and focus the discussion.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.