{"modulePath":"github.com/pubgo/funk/v2","version":"v2.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package githubclient\n\n## Functions\n\n```go\nfunc GetSizeFormat(size int) string\n```\n\n## Types\n\n```go\ntype Asset struct {\n\tName, Filename, OS, Arch, URL, Type string\n\tSize                                int\n\tCreatedAt                           time.Time\n\tChecksumFile                        bool\n}\n```\n\n```go\nfunc (a Asset) Is32Bit() bool\n```\n\n```go\nfunc (a Asset) IsArchive() bool\n```\nIsArchive 根据文件扩展名判断是否为归档文件\n\n```go\nfunc (a Asset) IsChecksumFile() bool\n```\n\n```go\nfunc (a Asset) IsLinux() bool\n```\n\n```go\nfunc (a Asset) IsMac() bool\n```\n\n```go\nfunc (a Asset) IsMacM1() bool\n```\n\n```go\nfunc (a Asset) IsWindows() bool\n```\n\n```go\nfunc (a Asset) Key() string\n```\n\n```go\ntype Assets []Asset\n```\n\n```go\nfunc GetAssetList(repositoryReleases []*github.RepositoryRelease) Assets\n```\n\n```go\nfunc GetAssets(repositoryRelease *github.RepositoryRelease) Assets\n```\n\n```go\nfunc (as Assets) HasM1() bool\n```\n\n```go\ntype PublicRelease struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewPublicRelease(owner, repo string) *PublicRelease\n```\n\n```go\nfunc (g PublicRelease) Latest(ctx context.Context) (*github.RepositoryRelease, error)\n```\n\n```go\nfunc (g PublicRelease) List(ctx context.Context, pageSize ...int) ([]*github.RepositoryRelease, error)\n```\n\n","path":"github.com/pubgo/funk/v2/component/githubclient","name":"githubclient","synopsis":"","isRedistributable":true}
