$61 GRAYBYTE WORDPRESS FILE MANAGER $25

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/lib/golang/src/cmd/internal/obj/

HOME
Current File : /lib/golang/src/cmd/internal/obj//stringer.go
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build ignore

// This is a mini version of the stringer tool customized for the Anames table
// in the architecture support for obj.
// This version just generates the slice of strings, not the String method.

package main

import (
	"bufio"
	"flag"
	"fmt"
	"log"
	"os"
	"regexp"
	"strings"
)

var (
	input  = flag.String("i", "", "input file name")
	output = flag.String("o", "", "output file name")
	pkg    = flag.String("p", "", "package name")
)

var Are = regexp.MustCompile(`^\tA([A-Za-z0-9]+)`)

func main() {
	flag.Parse()
	if *input == "" || *output == "" || *pkg == "" {
		flag.Usage()
		os.Exit(2)
	}
	in, err := os.Open(*input)
	if err != nil {
		log.Fatal(err)
	}
	fd, err := os.Create(*output)
	if err != nil {
		log.Fatal(err)
	}
	out := bufio.NewWriter(fd)
	defer out.Flush()
	var on = false
	s := bufio.NewScanner(in)
	first := true
	for s.Scan() {
		line := s.Text()
		if !on {
			// First relevant line contains "= obj.ABase".
			// If we find it, delete the = so we don't stop immediately.
			const prefix = "= obj.ABase"
			index := strings.Index(line, prefix)
			if index < 0 {
				continue
			}
			// It's on. Start with the header.
			fmt.Fprintf(out, header, *input, *output, *pkg, *pkg)
			on = true
			line = line[:index]
		}
		// Strip comments so their text won't defeat our heuristic.
		index := strings.Index(line, "//")
		if index > 0 {
			line = line[:index]
		}
		index = strings.Index(line, "/*")
		if index > 0 {
			line = line[:index]
		}
		// Termination condition: Any line with an = changes the sequence,
		// so stop there, and stop at a closing brace.
		if strings.HasPrefix(line, "}") || strings.ContainsRune(line, '=') {
			break
		}
		sub := Are.FindStringSubmatch(line)
		if len(sub) < 2 {
			continue
		}
		if first {
			fmt.Fprintf(out, "\tobj.A_ARCHSPECIFIC: %q,\n", sub[1])
			first = false
		} else {
			fmt.Fprintf(out, "\t%q,\n", sub[1])
		}
	}
	fmt.Fprintln(out, "}")
	if s.Err() != nil {
		log.Fatal(err)
	}
}

const header = `// Code generated by stringer -i %s -o %s -p %s; DO NOT EDIT.

package %s

import "cmd/internal/obj"

var Anames = []string{
`

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
16 Dec 2025 9.30 PM
root / root
0755
arm
--
16 Dec 2025 9.30 PM
root / root
0755
arm64
--
16 Dec 2025 9.30 PM
root / root
0755
loong64
--
16 Dec 2025 9.30 PM
root / root
0755
mips
--
16 Dec 2025 9.30 PM
root / root
0755
ppc64
--
16 Dec 2025 9.30 PM
root / root
0755
riscv
--
16 Dec 2025 9.30 PM
root / root
0755
s390x
--
16 Dec 2025 9.30 PM
root / root
0755
wasm
--
16 Dec 2025 9.30 PM
root / root
0755
x86
--
16 Dec 2025 9.30 PM
root / root
0755
abi_string.go
0.575 KB
4 Dec 2025 6.06 PM
root / root
0644
addrtype_string.go
1.072 KB
4 Dec 2025 6.06 PM
root / root
0644
data.go
7.452 KB
4 Dec 2025 6.06 PM
root / root
0644
dwarf.go
22.242 KB
4 Dec 2025 6.06 PM
root / root
0644
fips140.go
14.864 KB
4 Dec 2025 6.06 PM
root / root
0644
go.go
0.334 KB
4 Dec 2025 6.06 PM
root / root
0644
inl.go
4.441 KB
4 Dec 2025 6.06 PM
root / root
0644
ld.go
2.62 KB
4 Dec 2025 6.06 PM
root / root
0644
line.go
0.871 KB
4 Dec 2025 6.06 PM
root / root
0644
link.go
36.254 KB
4 Dec 2025 6.06 PM
root / root
0644
mkcnames.go
2.897 KB
4 Dec 2025 6.06 PM
root / root
0644
objfile.go
24.25 KB
4 Dec 2025 6.06 PM
root / root
0644
pass.go
5.02 KB
4 Dec 2025 6.06 PM
root / root
0644
pcln.go
11.792 KB
4 Dec 2025 6.06 PM
root / root
0644
plist.go
11.491 KB
4 Dec 2025 6.06 PM
root / root
0644
stringer.go
2.221 KB
4 Dec 2025 6.06 PM
root / root
0644
sym.go
14.475 KB
4 Dec 2025 6.06 PM
root / root
0644
textflag.go
1.635 KB
4 Dec 2025 6.06 PM
root / root
0644
util.go
17.912 KB
4 Dec 2025 6.06 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF