From 33ff8c56d49f9dcd37f0b68511189a5db831a284 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 29 Jun 2015 19:10:21 +0200 Subject: Format --- ber/class_test.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'ber') 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 } -- cgit v1.2.3