MCPcopy Create free account
hub / github.com/google/go-github / intFromLastPathSegment

Function intFromLastPathSegment

scrape/apps.go:82–89  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

80}
81
82func intFromLastPathSegment(s string) int {
83 seg := strings.Split(s, "/")
84 if len(seg) > 0 {
85 i, _ := strconv.Atoi(seg[len(seg)-1])
86 return i
87 }
88 return 0
89}
90
91// OAuthAppReviewState indicates the current state of a requested OAuth Application.
92type OAuthAppReviewState int

Callers 1

ListOAuthAppsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…