Created
August 29, 2010 15:10
-
-
Save napsy/556363 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Parse() calls uuid_unparse() which takes unsigned char * as arg1 and char * as arg2 | |
-- parses the first argument and writes a string representation in the second argument (37 bytes) | |
*/ | |
func Parse(_uuid []byte) string { | |
var _str []byte = make([]byte, 37) | |
C.uuid_unparse((*C.uchar)(unsafe.Pointer(&_uuid)), (*C.char)(unsafe.Pointer(&_str))) | |
return string(_str) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment