aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 8d438854c934f41784b95375050bced9fb8c5def (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Alpine Go

These are a set of packages that help with interacting with various Alpine Linux
related systems. These things include:

* APKBUILD files
* APKINDEX files
* .apk files
* release.json

## Packages

In-depth documentation for this package can be found on [pkg.go.dev][go-dev]

### apkbuild

```go
import "gitlab.alpinelinux.org/alpine/go/pkg/apkbuild"
```

Currently only parses secfixes in APKBUILD files.

### repository

```go
import "gitlab.alpinelinux.org/alpine/go/pkg/repository"
```

Parses .apk files and APKINDEX files, providing information about all packages in the index.

### releases

```go
import "gitlab.alpinelinux.org/alpine/go/pkg/releases"
```

Provides functions and structures to get information about Alpine Linux releases.

```go
rels, err := releases.Fetch()

for _, releaseBranch := range rels.ReleaseBranches {
    fmt.Printf("Release %s eol: %s\n", releaseBranch.RelBranch, releaseBranch.EolDate)
}
```

## License

MIT

[go-dev]:https://pkg.go.dev/gitlab.alpinelinux.org/alpine/go