You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: convert.go
    path of file: ./repos/sharingan/replayer-agent/utils/helper
    
    the code of the file until where you have to start completion: package helper

import (
	"bytes"
	"reflect"
	"strconv"
	"unicode"
	"unsafe"
)

func StripcSlashes
    
func strtol(buf []byte, base int) byte {
	slen := len(buf)
	res := 0
	for i := 0; i < slen; i++ {
		var c int
		if unicode.IsDigit(rune(buf[i])) {
			c = int(buf[i] - '0')
		} else if buf[i] >= 'a' && buf[i] <= 'f' {
			c = int(buf[i]-'a') + 10
		} else if buf[i] >= 'A' && buf[i] <= 'F' {
			c = int(buf[i]-'A') + 10
		} else {
			return byte(res)
		}
		res *= base
		res += c
	}
	return byte(res)
}