Answers for "Check string prefix golang"

Go
0

Check string prefix golang

import ( 
    "strings"
) 
  
myString := "x-test"
result := strings.HasPrefix(s1, "x-")
Posted by: Guest on October-26-2020

Browse Popular Code Answers by Language