config

package
v0.0.0-...-3444db6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHeader

func CheckHeader(fh FileHeader, conname string) bool

CheckHeader returns true, if conname and Header ContentName is identical

Types

type File

type File struct {
	Header  FileHeader
	Content interface{}
}

type FileHeader

type FileHeader struct {
	HeaderVersion  float32
	FileName       string
	ContentName    string
	ContentVersion float32
	Comment        string
}

FileHeader default config file header

func BuildHeader

func BuildHeader(filename string, conname string, conver float32, comment string) FileHeader

BuildHeader builds a default config file header

func BuildHeaderWithStruct

func BuildHeaderWithStruct(h FileHeader) FileHeader

BuildHeaderWithStruct builds a default config file header with a struct

Jump to

Keyboard shortcuts

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