Rename dos33 to dos3

This commit is contained in:
Zellyn Hunter 2016-11-16 21:42:18 -05:00
parent e9f2791676
commit 9991af82bc
6 changed files with 11 additions and 10 deletions

View File

@ -8,7 +8,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/zellyn/diskii/lib/disk" "github.com/zellyn/diskii/lib/disk"
_ "github.com/zellyn/diskii/lib/dos33" _ "github.com/zellyn/diskii/lib/dos3"
_ "github.com/zellyn/diskii/lib/supermon" _ "github.com/zellyn/diskii/lib/supermon"
) )

View File

@ -8,7 +8,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/zellyn/diskii/lib/disk" "github.com/zellyn/diskii/lib/disk"
_ "github.com/zellyn/diskii/lib/dos33" _ "github.com/zellyn/diskii/lib/dos3"
_ "github.com/zellyn/diskii/lib/supermon" _ "github.com/zellyn/diskii/lib/supermon"
) )

View File

@ -1,7 +1,8 @@
// Copyright © 2016 Zellyn Hunter <zellyn@gmail.com> // Copyright © 2016 Zellyn Hunter <zellyn@gmail.com>
// Package dos33 contains routines for working with the on-disk structures of DOS 3.3. // Package dos3 contains routines for working with the on-disk
package dos33 // structures of Apple DOS 3.
package dos3
import ( import (
"encoding/binary" "encoding/binary"
@ -465,8 +466,8 @@ type operator struct {
var _ disk.Operator = operator{} var _ disk.Operator = operator{}
// operatorName is the keyword name for the operator that undestands // operatorName is the keyword name for the operator that undestands
// dos33 disks. // dos3 disks.
const operatorName = "dos33" const operatorName = "dos3"
// Name returns the name of the operator. // Name returns the name of the operator.
func (o operator) Name() string { func (o operator) Name() string {
@ -504,7 +505,7 @@ func (o operator) GetFile(filename string) (disk.FileInfo, error) {
return disk.FileInfo{}, fmt.Errorf("%s does not yet implement `GetFile`", operatorName) return disk.FileInfo{}, fmt.Errorf("%s does not yet implement `GetFile`", operatorName)
} }
// operatorFactory is the factory that returns dos33 operators given // operatorFactory is the factory that returns dos3 operators given
// disk images. // disk images.
func operatorFactory(sd disk.SectorDisk) (disk.Operator, error) { func operatorFactory(sd disk.SectorDisk) (disk.Operator, error) {
lsd, err := disk.NewMappedDisk(sd, disk.Dos33LogicalToPhysicalSectorMap) lsd, err := disk.NewMappedDisk(sd, disk.Dos33LogicalToPhysicalSectorMap)

View File

@ -1,4 +1,4 @@
package dos33 package dos3
import ( import (
"crypto/rand" "crypto/rand"

View File

@ -325,8 +325,8 @@ func (o operator) GetFile(filename string) (disk.FileInfo, error) {
}, nil }, nil
} }
// operatorFactory is the factory that returns dos33 operators given // operatorFactory is the factory that returns supermon operators
// disk images. // given disk images.
func operatorFactory(sd disk.SectorDisk) (disk.Operator, error) { func operatorFactory(sd disk.SectorDisk) (disk.Operator, error) {
sm, err := LoadSectorMap(sd) sm, err := LoadSectorMap(sd)
if err != nil { if err != nil {