Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3562)

Issue 9908043: code review 9908043: path, path/filepath: Add Name function (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by Hierro
Modified:
10 years, 10 months ago
Reviewers:
r, rsc, golang-dev
Visibility:
Public.

Description

path, path/filepath: Add Name function Name returns the file name minus the extension. The extension is the suffix beginning at the final dot in the final slash-separated element of path. If there is no extension, the same file name is returned.

Patch Set 1 #

Patch Set 2 : diff -r 24596e5bca7d https://code.google.com/p/go #

Patch Set 3 : diff -r 24596e5bca7d https://code.google.com/p/go #

Total comments: 1

Patch Set 4 : diff -r 24596e5bca7d https://code.google.com/p/go #

Patch Set 5 : diff -r 24596e5bca7d https://code.google.com/p/go #

Total comments: 4

Patch Set 6 : diff -r 790c4ffd6d36 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -12 lines) Patch
M doc/go1.2.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/path/filepath/path.go View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
M src/pkg/path/filepath/path_test.go View 1 2 3 2 chunks +14 lines, -6 lines 0 comments Download
M src/pkg/path/path.go View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
M src/pkg/path/path_test.go View 1 2 3 2 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 12
Hierro
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 11 months ago (2013-05-31 18:53:18 UTC) #1
r
https://codereview.appspot.com/9908043/diff/5001/src/pkg/path/filepath/path.go File src/pkg/path/filepath/path.go (right): https://codereview.appspot.com/9908043/diff/5001/src/pkg/path/filepath/path.go#newcode227 src/pkg/path/filepath/path.go:227: } this function generates garbage by calling Ext. it ...
10 years, 11 months ago (2013-05-31 19:03:56 UTC) #2
Hierro
On 2013/05/31 19:03:56, r wrote: > https://codereview.appspot.com/9908043/diff/5001/src/pkg/path/filepath/path.go > File src/pkg/path/filepath/path.go (right): > > https://codereview.appspot.com/9908043/diff/5001/src/pkg/path/filepath/path.go#newcode227 > ...
10 years, 11 months ago (2013-05-31 19:15:54 UTC) #3
Hierro
PTAL
10 years, 11 months ago (2013-05-31 19:20:38 UTC) #4
r
https://codereview.appspot.com/9908043/diff/15001/src/pkg/path/filepath/path.go File src/pkg/path/filepath/path.go (right): https://codereview.appspot.com/9908043/diff/15001/src/pkg/path/filepath/path.go#newcode221 src/pkg/path/filepath/path.go:221: // Name returns the file name minus the extension. ...
10 years, 11 months ago (2013-05-31 19:24:16 UTC) #5
r
Also, please add an entry to doc/go1.2.txt
10 years, 11 months ago (2013-05-31 19:24:34 UTC) #6
Hierro
On 2013/05/31 19:24:16, r wrote: > https://codereview.appspot.com/9908043/diff/15001/src/pkg/path/filepath/path.go > File src/pkg/path/filepath/path.go (right): > > https://codereview.appspot.com/9908043/diff/15001/src/pkg/path/filepath/path.go#newcode221 > ...
10 years, 11 months ago (2013-05-31 19:30:06 UTC) #7
r
https://codereview.appspot.com/9908043/diff/15001/src/pkg/path/filepath/path.go File src/pkg/path/filepath/path.go (right): https://codereview.appspot.com/9908043/diff/15001/src/pkg/path/filepath/path.go#newcode228 src/pkg/path/filepath/path.go:228: return path[:i] hold on. just realized because of your ...
10 years, 10 months ago (2013-06-03 13:48:28 UTC) #8
rsc
This implementation is wrong for "Name", as Rob points out. And actually there's no reason ...
10 years, 10 months ago (2013-06-03 18:38:55 UTC) #9
r
I've thought about it some more and agree, let's let it go. It's not compelling. ...
10 years, 10 months ago (2013-06-03 18:52:26 UTC) #10
Hierro
On 2013/06/03 18:52:26, r wrote: > I've thought about it some more and agree, let's ...
10 years, 10 months ago (2013-06-03 21:20:05 UTC) #11
Hierro
10 years, 10 months ago (2013-06-03 21:23:52 UTC) #12
Message was sent while issue was closed.
*** Abandoned ***
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b