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: cp_invoke_dynamic.go
    path of file: ./repos/jvm.go/rtda/heap
    
    the code of the file until where you have to start completion: package heap

import (
	"github.com/zxh0/jvm.go/classfile"
)

type ConstantInvokeDynamic struct {
	name               string
	_type              string
	bootstrapMethodRef uint16 // method handle
	bootstrapArguments []uint16
	cp                 ConstantPool
}

func newConstantInvokeDynamic(cf *classfil
    
func newConstantInvokeDynamic(cf *classfile.ClassFile, cp ConstantPool, indyInfo classfile.ConstantInvokeDynamicInfo) *ConstantInvokeDynamic {
	name, _type := cf.GetNameAndType(indyInfo.NameAndTypeIndex)
	bm := cf.GetBootstrapMethods()[indyInfo.BootstrapMethodAttrIndex]
	return &ConstantInvokeDynamic{
		name:               name,
		_type:              _type,
		bootstrapMethodRef: bm.BootstrapMethodRef,
		bootstrapArguments: bm.BootstrapArguments,
		cp:                 cp,
	}
}