# probe-taglib-usage **Repository Path**: EEPPEE_admin/probe-taglib-usage ## Basic Information - **Project Name**: probe-taglib-usage - **Description**: taglib stuff for Music audio file - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: libtaglibcgo - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-01 - **Last Updated**: 2026-02-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: musicmetadata, Go语言 ## README # let go make a taglib to feedback c ecosystem - here I want to probe go's ability to make c compatible libs, so that I can use it in c ecosystem # NOTICE - not production code, just probe go's ability to make c compatible libs - this is not expected to be a go package for go ecosystem, this is a package build for c ecosystem # c example usage ```c #include "../libtaglib_purego.h" #include int main(int argc, char **argv) { if (argc != 2) { printf("请提供一个MP3文件路径作为参数\n"); printf("Usage: %s \n", argv[0]); return 1; } ID3Tag *tag = ParseID3Tag(argv[1]); if (tag == NULL) { printf("解析标签失败: %s\n", argv[1]); return 1; } printf("Title: %s\n", tag->title); printf("Artist: %s\n", tag->artist); printf("Album: %s\n", tag->album); printf("Comment: %s\n", tag->comment); printf("Genre: %s\n", tag->genre); printf("Year: %s\n", tag->year); printf("Track: %u\n", tag->track); printf("Disc: %u\n", tag->disc); printf("TagSize: %u\n", tag->tag_size); printf("============================================\n"); printf("major_brand: %s\n", tag->major_brand); printf("minor_version: %s\n", tag->minor_version); printf("compatible_brands: %s\n", tag->compatible_brands); printf("description: %s\n", tag->description); FreeID3Tag(tag); return 0; } ``` # ref links - original repo: https://github.com/hjfreyer/taglib-go