package types

import (
	
	
	
)
ScanFully uses fmt.Sscanf with verb to fully scan val into ptr.
func ( interface{},  string,  byte) error {
attempt to read extra bytes to make sure the value is consumed
	var  []byte
	,  := fmt.Sscanf(, "%"+string()+"%s", , &)
	switch {
	case  < 1 ||  == 1 &&  != io.EOF:
		return fmt.Errorf("failed to parse %q as %v: %v", , , )
	case  > 1:
		return fmt.Errorf("failed to parse %q as %v: extra characters %q", , , string())
n == 1 && err == io.EOF
	return nil