Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
raspi committed Dec 31, 2019
1 parent ae0d036 commit 8762c84
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/display/ascii.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import (
"strings"
)

/*
Ascii displays bytes as ASCII characters. Non-printable characters are displayed as dots ('.').
*/
type Ascii struct {
sb strings.Builder
}
Expand Down
3 changes: 3 additions & 0 deletions pkg/display/bit.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import (
"strings"
)

/*
Bit displays bytes as bits 00000000-11111111
*/
type Bit struct {
sb strings.Builder
}
Expand Down
3 changes: 3 additions & 0 deletions pkg/display/dec.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import (
"strings"
)

/*
Dec displays bytes as 000-255
*/
type Dec struct {
fs uint64
offFormat string // Format for offset column
Expand Down
3 changes: 3 additions & 0 deletions pkg/display/hex.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import (
"strings"
)

/*
Hex displays bytes in hexadecimal format 00-ff.
*/
type Hex struct {
fs uint64 // File size
bw uint8 // Bit width calculated from file size
Expand Down
3 changes: 3 additions & 0 deletions pkg/display/oct.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import (
"strings"
)

/*
Oct displays bytes in octal format 000-377
*/
type Oct struct {
fs uint64 // File size
offFormat string // Format for offset column
Expand Down
3 changes: 3 additions & 0 deletions pkg/display/percent.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import (
"strings"
)

/*
Percent displays offset as 000.000% - 100.000%
*/
type Percent struct {
fs uint64 // File size
sb strings.Builder
Expand Down

0 comments on commit 8762c84

Please sign in to comment.