github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/internal/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 //go:build !386 && !amd64 6 // +build !386,!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 }