Replace strings.Index() with strings.Cut()
patrickzheng200 opened this issue · comments
Scan all code to replace
i := strings.Index(s, ":")`
a := s[:i]
b := s[i+1:]
with strings.Cut()
I will take this one.
A collection of libraries for supporting sign and verify OCI artifacts. Based on Notary Project specifications.
patrickzheng200 opened this issue · comments
Scan all code to replace
i := strings.Index(s, ":")`
a := s[:i]
b := s[i+1:]
with strings.Cut()
I will take this one.