aboutsummaryrefslogtreecommitdiff
path: root/ber
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-06-29 19:10:21 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-06-29 19:10:21 +0200
commit33ff8c56d49f9dcd37f0b68511189a5db831a284 (patch)
treefa226c15ace31bbd379eaf7923ebe71b590ac7c4 /ber
parent0b73ba5da83efe8952e75757ba21fe4618625994 (diff)
Format
Diffstat (limited to 'ber')
-rw-r--r--ber/class_test.go22
1 files changed, 11 insertions, 11 deletions
diff --git a/ber/class_test.go b/ber/class_test.go
index d35a86a..9b91981 100644
--- a/ber/class_test.go
+++ b/ber/class_test.go
@@ -12,22 +12,22 @@ func ExampleIdent() {
for _, test := range berTestData {
c, k, t := Ident(test)
if c == Universal {
- fmt.Printf("0x%.2X: %v %v %v\n",
+ fmt.Printf("%#x: %v %v %v\n",
test, c, k, t)
} else {
- fmt.Printf("0x%.2X: %v %v 0x%.2X\n",
+ fmt.Printf("%#x: %v %v %#x\n",
test, c, k, byte(t))
}
}
// Output:
- // 0x02: Universal Primitive Integer
- // 0x04: Universal Primitive Octet String
- // 0x0A: Universal Primitive Enumerated
+ // 0x2: Universal Primitive Integer
+ // 0x4: Universal Primitive Octet String
+ // 0xa: Universal Primitive Enumerated
// 0x30: Universal Constructed Sequence / Of
- // 0x40: Application Primitive 0x00
- // 0x61: Application Constructed 0x01
- // 0x7E: Application Constructed 0x1E
- // 0x80: Context-specific Primitive 0x00
- // 0xA1: Context-specific Constructed 0x01
- // 0xBE: Context-specific Constructed 0x1E
+ // 0x40: Application Primitive 0x0
+ // 0x61: Application Constructed 0x1
+ // 0x7e: Application Constructed 0x1e
+ // 0x80: Context-specific Primitive 0x0
+ // 0xa1: Context-specific Constructed 0x1
+ // 0xbe: Context-specific Constructed 0x1e
}