notaryproject / notation-go

A collection of libraries for supporting sign and verify OCI artifacts. Based on Notary Project specifications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.