Пример #1
0
func init() {
	s := new(C.struct_aiString)
	C.aiGetExtensionList(s)
	exts := goString(s)
	for _, ext := range strings.Split(exts, ";") {
		Extensions[ext] = true
	}
}
Пример #2
0
func GetExtensionList() string {
	var str C.struct_aiString
	C.aiGetExtensionList(&str)
	return C.GoString(&str.data[0])
}