github.com/iDigitalFlame/xmt@v0.5.4/device/arch/z_no_implant.go (about) 1 //go:build !implant 2 // +build !implant 3 4 // Copyright (C) 2020 - 2023 iDigitalFlame 5 // 6 // This program is free software: you can redistribute it and/or modify 7 // it under the terms of the GNU General Public License as published by 8 // the Free Software Foundation, either version 3 of the License, or 9 // any later version. 10 // 11 // This program is distributed in the hope that it will be useful, 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 // GNU General Public License for more details. 15 // 16 // You should have received a copy of the GNU General Public License 17 // along with this program. If not, see <https://www.gnu.org/licenses/>. 18 // 19 20 package arch 21 22 // String returns the name of the Architecture type. 23 func (a Architecture) String() string { 24 switch a { 25 case X86: 26 return "32bit" 27 case X64: 28 return "64bit" 29 case ARM: 30 return "ARM" 31 case WASM: 32 return "WASM" 33 case Risc: 34 return "RiscV" 35 case Mips: 36 return "MIPS" 37 case ARM64: 38 return "ARM64" 39 case PowerPC: 40 return "PowerPC" 41 case Loong64: 42 return "Loong64" 43 case X86OnX64: 44 return "32bit [64bit]" 45 case ARMOnARM64: 46 return "ARM [ARM64]" 47 } 48 return "Unknown" 49 }