aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-12-03Remove ‘value’ argument from Flag{,Slice}Varv0.4.0Grégoire Duchêne
It’s basically redundant since a pointer to the value is already provided; callers can just set a default value there.
2022-12-03Remove redundant type conversionsGrégoire Duchêne
2022-12-03Remove redundant ParseStringGrégoire Duchêne
2022-12-03Remove MutableFlagValueGrégoire Duchêne
We can just have an ad hoc interface and not clutter the API.
2022-12-03Prevent flags from being set again by defaultv0.3.0Grégoire Duchêne
Flag values that are safe to be set again should implement the new MutableFlagValue interface.
2022-12-03Drop T from the name of the Flag functionsGrégoire Duchêne
Kind of redundant given that there’s a type parameter right after the function name.
2022-12-03Add InitFlagSetGrégoire Duchêne
2022-12-03Add NoCopy to flag types as not to be copiedGrégoire Duchêne
See https://github.com/golang/go/issues/8005#issuecomment-190753527 for more details.
2022-12-03Have FlagTSlice{,Var} take an optional separatorGrégoire Duchêne
This separator, when passed, allows for multiple values to be passed at a time.
2022-11-27Revert "Close pipe if PipeListener.DialContext errors out"Grégoire Duchêne
This reverts commit 2bfa4630c7223ee11ec29b91107333758e7f2a8e. It basically is not necessary to close the underlying channel.
2022-11-27Fix typo in header namev0.2.1Grégoire Duchêne
2022-09-17Update github.com/google/go-cmp to v0.5.9Grégoire Duchêne
2022-09-17Close pipe if PipeListener.DialContext errors outGrégoire Duchêne
2022-07-31Add T.Assert and T.AssertNotv0.2.0Grégoire Duchêne
2022-06-26Simplify the flag helper functionsv0.1.0Grégoire Duchêne
2022-06-26Add FlagVarDef and FlagVarSliceDefGrégoire Duchêne
2022-06-26Add a few flag helper functionsGrégoire Duchêne
2022-06-18Add FilterHTTPMethod and FilteringHTTPHandlerGrégoire Duchêne
2022-06-12Add SPDX tagsGrégoire Duchêne
2022-06-05Add ListenPipeGrégoire Duchêne
Also, PipeListener.Close now returns syscall.EINVAL if the PipeListener was closed already. This imitates the behavior of net.UnixListener.
2022-06-05Add Listen, Must, PipeListener, and TGrégoire Duchêne
2022-06-05First commitGrégoire Duchêne