1298 Commits

Author SHA1 Message Date
inkch
09032f5c37 Update public/
Some checks failed
test / build (1.23.0, macos-latest) (push) Has been cancelled
test / build (1.23.0, ubuntu-latest) (push) Has been cancelled
2025-07-23 22:45:47 +09:00
inkch
d0c5d19fed Fix commit link in attribution
Some checks failed
test / build (1.23.0, macos-latest) (push) Has been cancelled
test / build (1.23.0, ubuntu-latest) (push) Has been cancelled
2025-07-23 22:45:07 +09:00
inkch
d9024146c6 Update public/
Some checks failed
test / build (1.23.0, macos-latest) (push) Has been cancelled
test / build (1.23.0, ubuntu-latest) (push) Has been cancelled
2025-07-23 22:42:19 +09:00
inkch
ea48750ae3 Add note on original source and license 2025-07-23 22:40:17 +09:00
inkch
8a6db25221 Update attribution and source links 2025-07-23 22:39:27 +09:00
inkch
7123d715f4 Tweak layout and typography styles 2025-07-23 22:35:41 +09:00
Eli Bendersky
cecfee7229 Fix typo
Some checks failed
test / build (1.23.0, macos-latest) (push) Has been cancelled
test / build (1.23.0, ubuntu-latest) (push) Has been cancelled
Fixes #610
2025-06-09 05:20:47 -07:00
Matt Nathan
10aea2d282 Replace for ;; with for range int in all examples (#609)
This to be more idiomatic of Go since it was introduced.
2025-06-02 08:27:06 -07:00
Asutosh Padhi
bd94e3e926 Fix incorrect comment style in timers.sh (// → #) (#605)
Fixes #604
2025-05-16 19:02:15 -07:00
Eli Bendersky
b783827604 Remove broken translation links
Fixes #587
2025-05-13 05:44:38 -07:00
Eli Bendersky
7f3bbdab22 Rename .hash file for consistency
Fixes #593
2025-05-13 05:42:49 -07:00
Eli Bendersky
d393387262 Fix link to http-server from context.go
Also rename .hash file for consistency

Fixes #603
2025-05-13 05:35:37 -07:00
Eli Bendersky
6552c2cd2a Update public html of testin-and-benchmarking 2025-02-24 06:12:20 -08:00
Eli Bendersky
da87dfa854 Update go version to 1.24 2025-02-24 06:12:04 -08:00
Eli Bendersky
dc4d281034 Update testing-and-benchmarking for new benchmark Loop of Go 1.24 2025-02-24 06:11:01 -08:00
hudem1
a0afe45ff3 clarify a comment w.r.t. empty slice (#571)
* fix: Added go for routines - Correct doc

* fix: applied PR reviews

* fix: build file
2025-02-08 14:47:55 -08:00
Eli Bendersky
9f92e064a1 Clean up the defer example a bit 2025-01-29 05:39:08 -08:00
Eli Bendersky
2a6ddb935b Fix Seek distances to work with sample data file
The text in reading-files.sh suggests creating a 9-byte file, and the current
Seek distances error out.

Fixes #564
2025-01-20 18:49:13 -08:00
Anthony Buchholz
86216051fc Add rel="next" to example.tmpl file for the next link (#569) 2025-01-11 06:31:07 -08:00
Eli Bendersky
ad9cea3a54 Tweak interface example type assertion + update link 2025-01-06 05:47:45 -08:00
kevin-kho
858d475416 added type assertion example (#567)
* added type assertion example

* simplified example
2025-01-06 05:40:39 -08:00
Eli Bendersky
58894bd0f4 Update text and output of json example slightly 2024-12-30 07:03:07 -08:00
Bhaskar
795124176c Added json.NewDecoder example (#566)
* Update json.go

adding example for json.NewDecoder

* updated as per Contributings.md instructions
2024-12-30 06:58:35 -08:00
Marek Furák
bc680ed6b2 Fix http-server filename (#559)
* Fix filename for running the http-server example

* Generate the fixed HTML
2024-11-04 05:03:43 -08:00
wwwstephen
81ec07ea0a Correct inaccuracy in recursion description. (#555)
Co-authored-by: Eli Bendersky <eliben@gmail.com>
2024-09-23 13:33:02 -07:00
wwwstephen
78ecc3f8c1 Correct inaccuracy in recursion description. (#554) 2024-09-23 06:00:36 -07:00
Eli Bendersky
17b2ecf8d7 Add type to const definitions for enum values
Fixes #552
2024-09-11 10:48:28 -07:00
Eli Bendersky
9f66cb2ffd Update generated HTML 2024-08-21 16:20:10 -07:00
Eli Bendersky
9b3626a969 Update GH action workflow to Go 1.23 2024-08-21 16:15:41 -07:00
Eli Bendersky
a0e4c0787e Rename range over iterators sample and add a bit more sample 2024-08-21 07:27:28 -07:00
Eli Bendersky
4d27fb58cf Small tweaks to the sample 2024-08-21 07:15:28 -07:00
Eli Bendersky
2f31c1f6c1 Initial example of range over custom types 2024-08-21 07:04:38 -07:00
Eli Bendersky
6ed788f3f5 Update generics example to prepare for iteration 2024-08-21 06:43:09 -07:00
Eli Bendersky
d51709a171 Rename range example to prepare for expansion 2024-08-21 06:13:09 -07:00
Eli Bendersky
f7120b2cc1 Suggest latest version on the home page 2024-08-17 07:32:29 -07:00
Eli Bendersky
bf195bf4eb Clarify GC in structs example
Fixes #550
2024-08-14 08:14:52 -07:00
Alex
1a760375bd Fix example name in its .sh 2024-08-14 06:41:56 -07:00
David E.
b832df61a6 fix: change "encoding.xml" to "encoding/xml" (#546) 2024-08-05 05:50:34 -07:00
Set Kyar Wa Lar (Universe)
9ee93ffbf5 Add Burmese version translation (#541) 2024-07-08 06:15:15 -07:00
Joseph Myers
aa04b84479 Remove unreachable code from enums example (#540)
* remove unreachable code from switch in enums example

* run build/tools to generate static content in /public
2024-07-03 09:24:40 -07:00
Mark McGranaghan
5cd7f20d83 Use console consistently for readme blocks 2024-06-17 21:36:54 +00:00
Jon Webb
308d4be300 Fix typo in examples/enums/enums.go (#537)
"unwknown" -> "unknown" in default switch case panic message.
2024-06-10 06:01:47 -07:00
Eli Bendersky
942f181467 Adjust the index page intro text slightly
* Fix grammar
* Reword language goals to align with Go team's comms
* Mention "latest major release" assumption

Fixes #532
2024-05-24 07:10:46 -07:00
Ali Görkem Çiçek
d774175f31 Fix typo in the enums example (#530) 2024-05-15 05:28:41 -07:00
Eli Bendersky
0b921edddd New example: enums
Fixes #513
2024-05-14 06:25:29 -07:00
Eli Bendersky
0d466e6c64 Clarify JS by attaching onkeydown explicitly on the window 2024-05-11 08:56:40 -07:00
Henrik Sylvester Oddergaard
e6b7ae87b5 Stop breaking browser navigation shortcuts. (#527)
On Linux Chrome I use ALT + Arrows to go back in the browser, but instead
it paginates between examples.

Fixed it by checking for special key modifiers and do nothing (to the let the browser handle it).
I think the user always intends a system shortcut if they use a modifier key.
2024-05-11 08:54:34 -07:00
EmNudge
e5e90317bd fix ending extension (#526) 2024-05-01 09:50:23 -04:00
Zhizhen He
665183dcd8 Fix typo in a comment (#525) 2024-04-30 23:38:05 -04:00
Elias Kauppi
baadeda664 Use seek enums and show other seek methods (#524)
* Use seek whence values

* Add examples of seeking with other methods
2024-04-29 05:47:21 -07:00