// GetHint returns hint from id.
GetHint returns hint from id.
// GetHint returns hint from id .
func GetHint(id, namespace, suffix string) (string, error) {
	posSuffix := strings.LastIndex(id, suffix)
	if posSuffix == -1 {
		return "", fmt.Errorf("invalid ID [%s]", id)
	}
	hint := id[len(namespace)+1 : posSuffix-1]
	return hint, nil
}
func GetHint ( id , namespace , suffix string ) ( string , error ) { posSuffix := strings . LastIndex ( id , suffix ) if posSuffix == - 1 { return " " , fmt . Errorf ( " " , id ) } hint := id [ len ( namespace ) + 1 : posSuffix - 1 ] return hint , nil }
GetHint returns hint from id.
GetHint returns hint from id .