Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 156 for format (1.36 sec)

  1. src/cmd/compile/internal/typecheck/iexport.go

    //
    // The indexed export data format is an evolution of the previous
    // binary export data format. Its chief contribution is introducing an
    // index table, which allows efficient random access of individual
    // declarations and inline function bodies. In turn, this allows
    // avoiding unnecessary work for compilation units that import large
    // packages.
    //
    //
    // The top-level data format is structured as:
    //
    //     Header struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/dumper.go

    type writeError struct {
    	err error
    }
    
    // printf is a convenience wrapper that takes care of print errors.
    func (p *dumper) printf(format string, args ...interface{}) {
    	if _, err := fmt.Fprintf(p, format, args...); err != nil {
    		panic(writeError{err})
    	}
    }
    
    // dump prints the contents of x.
    // If x is the reflect.Value of a struct s, where &s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 08 17:32:14 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/addmod.go

    	"path/filepath"
    	"strings"
    )
    
    func usage() {
    	fmt.Fprintf(os.Stderr, "usage: go run addmod.go path@version...\n")
    	os.Exit(2)
    }
    
    var tmpdir string
    
    func fatalf(format string, args ...any) {
    	os.RemoveAll(tmpdir)
    	log.Fatalf(format, args...)
    }
    
    const goCmd = "go"
    
    func main() {
    	flag.Usage = usage
    	flag.Parse()
    	if flag.NArg() == 0 {
    		usage()
    	}
    
    	log.SetPrefix("addmod: ")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 30 19:41:54 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  4. src/archive/tar/writer.go

    		}
    	}
    
    	// Round ModTime and ignore AccessTime and ChangeTime unless
    	// the format is explicitly chosen.
    	// This ensures nominal usage of WriteHeader (without specifying the format)
    	// does not always result in the PAX format being chosen, which
    	// causes a 1KiB increase to every header.
    	if tw.hdr.Format == FormatUnknown {
    		tw.hdr.ModTime = tw.hdr.ModTime.Round(time.Second)
    		tw.hdr.AccessTime = time.Time{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. src/cmd/fix/main.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"bytes"
    	"flag"
    	"fmt"
    	"go/ast"
    	"go/format"
    	"go/parser"
    	"go/scanner"
    	"go/token"
    	"go/version"
    	"internal/diff"
    	"io"
    	"io/fs"
    	"os"
    	"path/filepath"
    	"sort"
    	"strings"
    
    	"cmd/internal/telemetry"
    )
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/test/testdata/gen/arithBoundaryGen.go

    package main
    
    import (
    	"bytes"
    	"fmt"
    	"go/format"
    	"log"
    	"text/template"
    )
    
    // used for interpolation in a text template
    type tmplData struct {
    	Name, Stype, Symbol string
    }
    
    // used to work around an issue with the mod symbol being
    // interpreted as part of a format string
    func (s tmplData) SymFirst() string {
    	return string(s.Symbol[0])
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  7. src/cmd/asm/main.go

    	var ok, diag bool
    	var failedFile string
    	for _, f := range flag.Args() {
    		lexer := lex.NewLexer(f)
    		parser := asm.NewParser(ctxt, architecture, lexer)
    		ctxt.DiagFunc = func(format string, args ...interface{}) {
    			diag = true
    			log.Printf(format, args...)
    		}
    		if *flags.SymABIs {
    			ok = parser.ParseSymABIs(buf)
    		} else {
    			pList := new(obj.Plist)
    			pList.Firstpc, ok = parser.Parse()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/hilbert_test.go

    	g.verify(n)
    	g.printProduct(n)
    	g.binomials(2*n - 1)
    	g.factorials(2*n - 1)
    
    	return g.Bytes()
    }
    
    type gen struct {
    	bytes.Buffer
    }
    
    func (g *gen) p(format string, args ...interface{}) {
    	fmt.Fprintf(&g.Buffer, format, args...)
    }
    
    func (g *gen) hilbert(n int) {
    	g.p(`// Hilbert matrix, n = %d
    const (
    `, n)
    	for i := 0; i < n; i++ {
    		g.p("\t")
    		for j := 0; j < n; j++ {
    			if j > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 21:00:12 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. src/archive/tar/strconv.go

    		}
    		if (x >> 63) > 0 {
    			p.err = ErrHeader // Integer overflow
    			return 0
    		}
    		if inv == 0xff {
    			return ^int64(x)
    		}
    		return int64(x)
    	}
    
    	// Normal case is base-8 (octal) format.
    	return p.parseOctal(b)
    }
    
    // formatNumeric encodes x into b using base-8 (octal) encoding if possible.
    // Otherwise it will attempt to use base-256 (binary) encoding.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  10. src/cmd/doc/pkg.go

    // without running a subprocess. The log prefix will be added when
    // logged in main; it is not added here.
    func (pkg *Package) Fatalf(format string, args ...any) {
    	panic(PackageError(fmt.Sprintf(format, args...)))
    }
    
    // parsePackage turns the build package we found into a parsed package
    // we can then use to generate documentation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top