control

package
v0.0.0-...-63b4fcb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package control provides functions for reading Debian's "control data" (*.dsc) format.

https://www.debian.org/doc/debian-policy/ch-controlfields.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document map[string]string

func Parse

func Parse(s string) (Document, error)

func (Document) GetFiles

func (d Document) GetFiles(key string) []File

func (Document) GetString

func (d Document) GetString(key string) string

type File

type File struct {
	Name string
	Size uint64
	Hash string
}

func FindFileInList

func FindFileInList(files []File, name string) File

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL