Пример #1
0
// Meta returns a meta data item from a Cert given a key
func (c *Cert) Meta(key string) string {
	cKey := C.CString(key)
	defer C.free(unsafe.Pointer(cKey))

	val := C.zcert_meta(c.zcertT, cKey)
	return C.GoString(val)
}
Пример #2
0
// Meta returns a meta data item from a Cert given a key
func (c *Cert) Meta(key string) string {
	val := C.zcert_meta(c.zcertT, C.CString(key))
	return C.GoString(val)
}