Guest User

Untitled

a guest
Aug 15th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. "regexp"
  6. "strings"
  7. )
  8.  
  9. func main() {
  10. re := regexp.MustCompile(`([a-z0-9])([A-Z])`)
  11. s := re.ReplaceAllString("HealthChecksResultsFulanoOutroBeltrano", "${1}_${2}")
  12. fmt.Println(strings.ToLower(s))
  13. }
Add Comment
Please, Sign In to add comment