{"modulePath":"github.com/go-webgpu/webgpu","version":"v0.5.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package nativelib\n\nPackage nativelib provides platform detection, download, and extraction of the wgpu-native binary library.\n\n## Functions\n\n```go\nfunc Download(url string) (string, error)\n```\nDownload downloads the file at url to a temporary file and returns its path. The caller is responsible for removing the temporary file when done.\n\n```go\nfunc ExtractLibrary(zipPath, destDir, libName string) (string, error)\n```\nExtractLibrary extracts the file named libName from the zip archive at zipPath, writing it to destDir. Returns the path of the extracted file.\n\n```go\nfunc FindLibrary() string\n```\n\n```go\nfunc LibraryName() string\n```\n\n## Types\n\n```go\ntype Platform struct {\n\tOS      string\n\tArch    string\n\tLibName string\n}\n```\n\n```go\nfunc DetectPlatform() (*Platform, error)\n```\n\n```go\nfunc (p *Platform) DownloadURL(version string) string\n```\n\n```go\nfunc (p *Platform) ZipName() string\n```\n\n","path":"github.com/go-webgpu/webgpu/internal/nativelib","name":"nativelib","synopsis":"Package nativelib provides platform detection, download, and extraction of the wgpu-native binary library.","isRedistributable":true}
