aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 51d9a11035a9e46b1e0b72850c759c212775e03b (plain) (blame)
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
# 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
* releas.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.

### apkindex

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

Parses APKINDEX files an provides 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