Standard library / go/build
go/build.ArchChar()
Obsolete architecture-character API; always returns an error in this release. Expected stdout: '? true\n'.
Formal Syntax & Structure
go syntaxgo
func ArchChar(goarch string) (string, error)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| goarch | string | Input to the operation as described above. |
Return Value
(string, error)
Obsolete architecture-character API; always returns an error in this release.
Working Example
Example Snippetgo
package main
import ( "fmt" "go/build")
func main() { s, e := build.ArchChar("amd64"); fmt.Println(s, e != nil) }