Source file src/internal/cpu/cpu_no_name.go
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 //go:build !386 && !amd64 && !ppc64 && !ppc64le 6 7 package cpu 8 9 // Name returns the CPU name given by the vendor 10 // if it can be read directly from memory or by CPU instructions. 11 // If the CPU name can not be determined an empty string is returned. 12 // 13 // Implementations that use the Operating System (e.g. sysctl or /sys/) 14 // to gather CPU information for display should be placed in internal/sysinfo. 15 func Name() string { 16 // "A CPU has no name". 17 return "" 18 } 19