Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for formatter (0.16 sec)

  1. src/cmd/cgo/gcc.go

    		}
    	default:
    		if r.Name.Kind == "func" {
    			error_(r.Pos(), "must call C.%s", fixGo(r.Name.Go))
    		}
    	}
    	return expr
    }
    
    // gofmtPos returns the gofmt-formatted string for an AST node,
    // with a comment setting the position before the node.
    func gofmtPos(n ast.Expr, pos token.Pos) string {
    	s := gofmtLine(n)
    	p := fset.Position(pos)
    	if p.Column == 0 {
    		return s
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top