github.com/unidoc/unidoc@v2.2.0+incompatible/pdf/internal/cmap/primitives.go (about) 1 /* 2 * This file is subject to the terms and conditions defined in 3 * file 'LICENSE.md', which is part of this source code package. 4 */ 5 6 package cmap 7 8 type cmapObject interface { 9 } 10 11 type cmapName struct { 12 Name string 13 } 14 15 type cmapOperand struct { 16 Operand string 17 } 18 19 type cmapHexString struct { 20 numBytes int // original number of bytes in the raw representation 21 b []byte 22 } 23 24 type cmapString struct { 25 String string 26 } 27 28 type cmapArray struct { 29 Array []cmapObject 30 } 31 32 type cmapDict struct { 33 Dict map[string]cmapObject 34 } 35 36 type cmapFloat struct { 37 val float64 38 } 39 40 type cmapInt struct { 41 val int64 42 } 43 44 func makeDict() cmapDict { 45 d := cmapDict{} 46 d.Dict = map[string]cmapObject{} 47 return d 48 }