Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for gofmt (0.07 sec)

  1. src/cmd/cgo/gcc.go

    			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 := gofmt(n)
    	p := fset.Position(pos)
    	if p.Column == 0 {
    		return s
    	}
    	return fmt.Sprintf("/*line :%d:%d*/%s", p.Line, p.Column, s)
    }
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
Back to top