Documentation
¶
Overview ¶
Package controlfile contains functions for parsing Debian control files
Index ¶
- func FormatDate(date time.Time) string
- func FormatYesNo(v bool) string
- func ParseDate(str string) (time.Time, error)
- func ParseYesNo(str string) (bool, error)
- func SkipSeparator(data []byte) []byte
- type Field
- type Stanza
- func (s *Stanza) Add(field Field)
- func (s *Stanza) AddRaw(name string, value []byte)
- func (s *Stanza) AddSimple(name, value string)
- func (s Stanza) Bytes() []byte
- func (s Stanza) Get(name string) *Field
- func (s Stanza) GetRaw(name string) []byte
- func (s Stanza) GetSimple(name string) string
- func (s Stanza) Marshal(out io.Writer) error
- func (s *Stanza) SetSimple(name, value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDate ¶
func FormatYesNo ¶
func ParseYesNo ¶
func SkipSeparator ¶
Types ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func (*Field) SimpleValue ¶
Click to show internal directories.
Click to hide internal directories.