func (dagOpts) Hash(mhType uint64, mhLen int) DagPutOption {
	return func(settings *DagPutSettings) error {
		settings.MhType = mhType
		settings.MhLength = mhLen
		return nil
	}
}
// Hash is an option for Dag.Put which specifies the multihash settings to use
// when hashing the object. Default is based on the codec used
// (mh.SHA2_256 (0x12) for DagCBOR). If mhLen is set to -1, default length for
// the hash will be used
Hash is an option for Dag.Put which specifies the multihash settings to use
when hashing the object. Default is based on the codec used
(mh.SHA2_256 (0x12) for DagCBOR). If mhLen is set to -1, default length for
the hash will be used
// Hash is an option for Dag . Put which specifies the multihash settings to use // when hashing the object . Default is based on the codec used // ( mh . SHA2_256 ( 0x12 ) for DagCBOR ) . If mhLen is set to - 1 default length for // the hash will be used
func (dagOpts) Hash(mhType uint64, mhLen int) DagPutOption {
	return func(settings *DagPutSettings) error {
		settings.MhType = mhType
		settings.MhLength = mhLen
		return nil
	}
}
func ( dagOpts ) Hash ( mhType uint64 , mhLen int ) DagPutOption { return func ( settings * DagPutSettings ) error { settings . MhType = mhType settings . MhLength = mhLen return nil } }
Hash is an option for Dag.Put which specifies the multihash settings to use
when hashing the object.
Hash is an option for Dag . Put which specifies the multihash settings to use when hashing the object .