Skip to content

dothanhtrung/godebian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deb822

import (
    "fmt"

    "gitlab.com/kimtinh/godebian/deb822"
)

func main() {
    // Find paragraph which has Package field is vim
    vim := deb822.FindOne("a_Sources_file","Package","vim")

    // Find all paragraphs which have Format field is 1.0
    format1 := deb822.FindAll("a_Source_file","Format","1.0")

    // Find the first 10 paragraphs which
    anything := deb822.Find("a_Source_file","","",10)

    // Show all files of source package nano
    nano := deb822.FindOnePackage("a_Sources_file","Package","nano")
    for _, file := range nano.Files {
        fmt.Println(file["name"])
        fmt.Println(file["md5sum"])
    }
}

control

import "gitlab.com/kimtinh/godebian/control"

func main() {
    // Read debian/control
    ctrl := control.Parse("debian/control")
}

Buy Me a Coffee at ko-fi.com

Releases

No releases published

Packages

No packages published

Languages