github.com/SandwichDev/go-internals@v0.0.0-20210605002614-12311ac6b2c5/cpu/cpu_no_name.go (about) 1 // Copyright 2020 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build !386 6 // +build !amd64 7 8 package cpu 9 10 // Name returns the CPU name given by the vendor 11 // if it can be read directly from memory or by CPU instructions. 12 // If the CPU name can not be determined an empty string is returned. 13 // 14 // Implementations that use the Operating System (e.g. sysctl or /sys/) 15 // to gather CPU information for display should be placed in internal/sysinfo. 16 func Name() string { 17 // "A CPU has no name". 18 return "" 19 }