Specifying more exact types for data

This commit is contained in:
Frederick F. Kautz IV
2015-03-01 14:43:11 -08:00
parent ed4bca240f
commit 0b08312ddd
2 changed files with 5 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ type Metadata map[string]string
type DataHeader struct {
Key string
Part int
Part uint8
Metadata Metadata
EncoderParams EncoderParams
}
@@ -41,13 +41,13 @@ const (
)
type EncoderParams struct {
Length int
Length uint32
K uint8
M uint8
Technique EncoderTechnique
}
func NewHeader(key string, part int, metadata Metadata, encoderParams EncoderParams) DataHeader {
func NewHeader(key string, part uint8, metadata Metadata, encoderParams EncoderParams) DataHeader {
header := DataHeader{}
header.Key = key
header.Part = part