MCPcopy Create free account
hub / github.com/github/gh-aw / templatableBoolPtrToStringPtr

Function templatableBoolPtrToStringPtr

pkg/workflow/templatables.go:211–217  ·  view source on GitHub ↗
(value *TemplatableBool)

Source from the content-addressed store, hash-verified

209}
210
211func templatableBoolPtrToStringPtr(value *TemplatableBool) *string {
212 if value == nil {
213 return nil
214 }
215 s := value.String()
216 return &s
217}
218
219func templatableBoolIsTrue(value *TemplatableBool) bool {
220 return value != nil && value.String() == "true"

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected