func AppendValue(lv *structpb.Value, val *structpb.Value) error {
	if lv == nil {
		return errors.New("lv cannot be nil")
	}

	list, ok := lv.Kind.(*structpb.Value_ListValue)
	if !ok {
		return errors.New("cannot append to non-list value")
	}

	if list.ListValue == nil {
		list.ListValue = &structpb.ListValue{}
	}

	list.ListValue.Values = append(list.ListValue.Values, val)
	return nil
}
// AppendValue appends a value to the a list
AppendValue appends a value to the a list
// AppendValue appends a value to the a list
func AppendValue(lv *structpb.Value, val *structpb.Value) error {
	if lv == nil {
		return errors.New("lv cannot be nil")
	}
	list, ok := lv.Kind.(*structpb.Value_ListValue)
	if !ok {
		return errors.New("cannot append to non-list value")
	}
	if list.ListValue == nil {
		list.ListValue = &structpb.ListValue{}
	}
	list.ListValue.Values = append(list.ListValue.Values, val)
	return nil
}
func AppendValue ( lv * structpb . Value , val * structpb . Value ) error { if lv == nil { return errors . New ( " " ) } list , ok := lv . Kind . ( * structpb . Value_ListValue ) if ! ok { return errors . New ( " " ) } if list . ListValue == nil { list . ListValue = & structpb . ListValue { } } list . ListValue . Values = append ( list . ListValue . Values , val ) return nil }
AppendValue appends a value to the a list
AppendValue appends a value to the a list