TrimLeft in Go

Posted by GoDoc
Public (Editable by Users)

TrimLeft returns a subslice of s by slicing off all leading UTF-8-encoded code points contained in cutset.

Go
Edit
package main

import (
	"bytes"
	"fmt"
)

func main() {
	fmt.Print(string(bytes.TrimLeft([]byte("453gopher8257"), "0123456789")))
}