Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Found ¶ added in v0.0.5
Example ¶
package main
import (
"fmt"
"github.com/itsubaki/fourkeys/handler/actions/runs"
)
func main() {
ids := []string{"1111", "2222", "3333"}
fmt.Println(runs.Found(ids, 1111))
fmt.Println(runs.Found(ids, 4444))
fmt.Println(runs.Found([]string{}, 1111))
}
Output: true false true
func Reverse ¶
func Reverse(list []*github.WorkflowRun) []*github.WorkflowRun
Example ¶
package main
import (
"fmt"
"github.com/google/go-github/v40/github"
"github.com/itsubaki/fourkeys/handler/actions/runs"
)
func main() {
list := []*github.WorkflowRun{
{Name: github.String("aaa")},
{Name: github.String("bbb")},
{Name: github.String("ccc")},
}
for _, r := range runs.Reverse(list) {
fmt.Println(*r.Name)
}
}
Output: ccc bbb aaa
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.