Skip to content

Commit 66d10c5

Browse files
committed
fix: generics hash
and update hash generate from play.golang.org
1 parent 08cf048 commit 66d10c5

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

examples/generics/generics.hash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
6219a4dadc2685ab1b61dc8e95799fd683ccb761
2-
YulcAofh266
1+
01dfc814a30e814240b8af31121be039b627d044
2+
zO9yBV4jtof

examples/testing-and-benchmarking/testing.hash

Lines changed: 0 additions & 2 deletions
This file was deleted.

tools/generate.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ func parseHashFile(sourcePath string) (string, string) {
136136

137137
func resetURLHashFile(codehash, code, sourcePath string) string {
138138
if verbose() {
139-
fmt.Println(" Sending request to play.studygolang.com")
139+
fmt.Println(" Sending request to play.golang.org")
140140
}
141141
payload := strings.NewReader(code)
142-
resp, err := http.Post("https://play.studygolang.com/share", "text/plain", payload)
142+
resp, err := http.Post("https://play.golang.org/share", "text/plain", payload)
143143
check(err)
144144
defer resp.Body.Close()
145145
body, err := io.ReadAll(resp.Body)
@@ -334,7 +334,7 @@ func renderExamples(examples []*Example) {
334334
_, err = exampleTmpl.Parse(mustReadFile("templates/example.tmpl"))
335335
check(err)
336336
for _, example := range examples {
337-
exampleF, err := os.Create(siteDir + "/" + example.ID+".html")
337+
exampleF, err := os.Create(siteDir + "/" + example.ID + ".html")
338338
check(err)
339339
exampleTmpl.Execute(exampleF, example)
340340
}

0 commit comments

Comments
 (0)