Add Helper for Optional Values #448
No reviewers
Labels
No Label
has/backport
has/pull
in progress
invalid
kind/breaking
kind/bug
kind/build
kind/deployment
kind/docs
kind/enhancement
kind/feature
kind/lint
kind/proposal
kind/question
kind/refactor
kind/security
kind/testing
kind/translation
kind/ui
need/backport
priority/critical
priority/low
priority/maybe
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/go-sdk#448
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "6543/go-sdk:add-bool-helper"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
close #340
b1618b30cc
toa05b2d9fb9
a05b2d9fb9
to82ccd068f4
@ -0,0 +5,4 @@
package gitea
// OptionalTrue return reference of true for a optional bool
func OptionalTrue() *bool {
I'm not sure I like the abstraction for a few lines of code...
Also, small nit, but why not
OptionalBool(b bool)
for consistency with the other methods?I won't block just for my nits.
@jolheiser no It's a good suggestions - since I mostly work alone on this ... hearing idears and thougts about souch things is alwasy a good input for me 👍
thats why I put the "need-feedback" lable on ... will change it to OptionalBool
be37a86e89
to7c47bdb50b