Skip to content

Commit e730323

Browse files
authored
Merge pull request #3331 from bhcleek/play/go.dev
play: update to use go.dev/play
2 parents 96b74ac + a58552a commit e730323

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/go/play.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function! go#play#Share(count, line1, line2) abort
1212
let share_file = tempname()
1313
call writefile(split(content, "\n"), share_file, "b")
1414

15-
let l:cmd = ['curl', '-s', '-X', 'POST', 'https://play.golang.org/share',
15+
let l:cmd = ['curl', '-s', '-X', 'POST', 'https://go.dev/_/share',
1616
\ '--data-binary', '@' . l:share_file]
1717
let [l:snippet_id, l:err] = go#util#Exec(l:cmd)
1818

@@ -24,7 +24,7 @@ function! go#play#Share(count, line1, line2) abort
2424
return
2525
endif
2626

27-
let url = "http://play.golang.org/p/".snippet_id
27+
let url = printf("http://go.dev/play/%s", snippet_id)
2828

2929
" copy to clipboard
3030
if has('unix') && !has('xterm_clipboard') && !has('clipboard')

0 commit comments

Comments
 (0)