initial generation for play.golang.org linking, ref #37

This commit is contained in:
Mark McGranaghan 2013-09-11 08:52:05 -07:00
parent 0c18c9689a
commit 056d0aff68
70 changed files with 109 additions and 44 deletions

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="arrays"> <div class="example" id="arrays">
<h2><a href="./">Go by Example</a>: Arrays</h2> <h2><a href="./">Go by Example</a>: Arrays</h2>
<a href="http://play.golang.org/p/l-A8eBnwio"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="atomic-counters"> <div class="example" id="atomic-counters">
<h2><a href="./">Go by Example</a>: Atomic Counters</h2> <h2><a href="./">Go by Example</a>: Atomic Counters</h2>
<a href="http://play.golang.org/p/sKIaNsJquU"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="base64-encoding"> <div class="example" id="base64-encoding">
<h2><a href="./">Go by Example</a>: Base64 Encoding</h2> <h2><a href="./">Go by Example</a>: Base64 Encoding</h2>
<a href="http://play.golang.org/p/t6rFm2x4Yr"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="channel-buffering"> <div class="example" id="channel-buffering">
<h2><a href="./">Go by Example</a>: Channel Buffering</h2> <h2><a href="./">Go by Example</a>: Channel Buffering</h2>
<a href="http://play.golang.org/p/34PVHwO6Bn"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="channel-directions"> <div class="example" id="channel-directions">
<h2><a href="./">Go by Example</a>: Channel Directions</h2> <h2><a href="./">Go by Example</a>: Channel Directions</h2>
<a href="http://play.golang.org/p/P9Fujfpa1f"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="channel-synchronization"> <div class="example" id="channel-synchronization">
<h2><a href="./">Go by Example</a>: Channel Synchronization</h2> <h2><a href="./">Go by Example</a>: Channel Synchronization</h2>
<a href="http://play.golang.org/p/0DfW-1RMqi"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="channels"> <div class="example" id="channels">
<h2><a href="./">Go by Example</a>: Channels</h2> <h2><a href="./">Go by Example</a>: Channels</h2>
<a href="http://play.golang.org/p/aVTMoY5FNt"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="closing-channels"> <div class="example" id="closing-channels">
<h2><a href="./">Go by Example</a>: Closing Channels</h2> <h2><a href="./">Go by Example</a>: Closing Channels</h2>
<a href="http://play.golang.org/p/eFZ2SeKswH"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="closures"> <div class="example" id="closures">
<h2><a href="./">Go by Example</a>: Closures</h2> <h2><a href="./">Go by Example</a>: Closures</h2>
<a href="http://play.golang.org/p/gQtEWkhWyp"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="collection-functions"> <div class="example" id="collection-functions">
<h2><a href="./">Go by Example</a>: Collection Functions</h2> <h2><a href="./">Go by Example</a>: Collection Functions</h2>
<a href="http://play.golang.org/p/3PNdke3Wia"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="command-line-arguments"> <div class="example" id="command-line-arguments">
<h2><a href="./">Go by Example</a>: Command-Line Arguments</h2> <h2><a href="./">Go by Example</a>: Command-Line Arguments</h2>
<a href="http://play.golang.org/p/44uyYt_TRl"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="command-line-flags"> <div class="example" id="command-line-flags">
<h2><a href="./">Go by Example</a>: Command-Line Flags</h2> <h2><a href="./">Go by Example</a>: Command-Line Flags</h2>
<a href="http://play.golang.org/p/9xlvGqQjhl"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="constants"> <div class="example" id="constants">
<h2><a href="./">Go by Example</a>: Constants</h2> <h2><a href="./">Go by Example</a>: Constants</h2>
<a href="http://play.golang.org/p/T5sj0eINnp"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="defer"> <div class="example" id="defer">
<h2><a href="./">Go by Example</a>: Defer</h2> <h2><a href="./">Go by Example</a>: Defer</h2>
<a href="http://play.golang.org/p/9aoHwzHcAo"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="environment-variables"> <div class="example" id="environment-variables">
<h2><a href="./">Go by Example</a>: Environment Variables</h2> <h2><a href="./">Go by Example</a>: Environment Variables</h2>
<a href="http://play.golang.org/p/kfqLhpmEpw"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="epoch"> <div class="example" id="epoch">
<h2><a href="./">Go by Example</a>: Epoch</h2> <h2><a href="./">Go by Example</a>: Epoch</h2>
<a href="http://play.golang.org/p/3jXHvYbLUz"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="errors"> <div class="example" id="errors">
<h2><a href="./">Go by Example</a>: Errors</h2> <h2><a href="./">Go by Example</a>: Errors</h2>
<a href="http://play.golang.org/p/BmDQXkPPTk"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="execing-processes"> <div class="example" id="execing-processes">
<h2><a href="./">Go by Example</a>: Exec'ing Processes</h2> <h2><a href="./">Go by Example</a>: Exec'ing Processes</h2>
<a href="http://play.golang.org/p/iEAD2cYC-h"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="exit"> <div class="example" id="exit">
<h2><a href="./">Go by Example</a>: Exit</h2> <h2><a href="./">Go by Example</a>: Exit</h2>
<a href="http://play.golang.org/p/CDiAh9SXRM"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="for"> <div class="example" id="for">
<h2><a href="./">Go by Example</a>: For</h2> <h2><a href="./">Go by Example</a>: For</h2>
<a href="http://play.golang.org/p/mGqqcBZ0jv"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="functions"> <div class="example" id="functions">
<h2><a href="./">Go by Example</a>: Functions</h2> <h2><a href="./">Go by Example</a>: Functions</h2>
<a href="http://play.golang.org/p/2EXoOWfGf_"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="goroutines"> <div class="example" id="goroutines">
<h2><a href="./">Go by Example</a>: Goroutines</h2> <h2><a href="./">Go by Example</a>: Goroutines</h2>
<a href="http://play.golang.org/p/aIO_Wi3hJj"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="hello-world"> <div class="example" id="hello-world">
<h2><a href="./">Go by Example</a>: Hello World</h2> <h2><a href="./">Go by Example</a>: Hello World</h2>
<a href="http://play.golang.org/p/H8bxSpw9Jq"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="if-else"> <div class="example" id="if-else">
<h2><a href="./">Go by Example</a>: If/Else</h2> <h2><a href="./">Go by Example</a>: If/Else</h2>
<a href="http://play.golang.org/p/p_ykufAYRj"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="interfaces"> <div class="example" id="interfaces">
<h2><a href="./">Go by Example</a>: Interfaces</h2> <h2><a href="./">Go by Example</a>: Interfaces</h2>
<a href="http://play.golang.org/p/vx8bwC-Bmq"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="json"> <div class="example" id="json">
<h2><a href="./">Go by Example</a>: JSON</h2> <h2><a href="./">Go by Example</a>: JSON</h2>
<a href="http://play.golang.org/p/4L2wMVv7tW"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="line-filters"> <div class="example" id="line-filters">
<h2><a href="./">Go by Example</a>: Line Filters</h2> <h2><a href="./">Go by Example</a>: Line Filters</h2>
<a href="http://play.golang.org/p/OSS71nSpkV"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="maps"> <div class="example" id="maps">
<h2><a href="./">Go by Example</a>: Maps</h2> <h2><a href="./">Go by Example</a>: Maps</h2>
<a href="http://play.golang.org/p/D-F9YN_V8r"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="methods"> <div class="example" id="methods">
<h2><a href="./">Go by Example</a>: Methods</h2> <h2><a href="./">Go by Example</a>: Methods</h2>
<a href="http://play.golang.org/p/254m_9Yjwa"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="multiple-return-values"> <div class="example" id="multiple-return-values">
<h2><a href="./">Go by Example</a>: Multiple Return Values</h2> <h2><a href="./">Go by Example</a>: Multiple Return Values</h2>
<a href="http://play.golang.org/p/LrDt1Wah0M"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="mutexes"> <div class="example" id="mutexes">
<h2><a href="./">Go by Example</a>: Mutexes</h2> <h2><a href="./">Go by Example</a>: Mutexes</h2>
<a href="http://play.golang.org/p/-_LKNceBru"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="non-blocking-channel-operations"> <div class="example" id="non-blocking-channel-operations">
<h2><a href="./">Go by Example</a>: Non-Blocking Channel Operations</h2> <h2><a href="./">Go by Example</a>: Non-Blocking Channel Operations</h2>
<a href="http://play.golang.org/p/M972dltae2"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="number-parsing"> <div class="example" id="number-parsing">
<h2><a href="./">Go by Example</a>: Number Parsing</h2> <h2><a href="./">Go by Example</a>: Number Parsing</h2>
<a href="http://play.golang.org/p/N90EppECFk"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="panic"> <div class="example" id="panic">
<h2><a href="./">Go by Example</a>: Panic</h2> <h2><a href="./">Go by Example</a>: Panic</h2>
<a href="http://play.golang.org/p/c86oXzfQOt"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="pointers"> <div class="example" id="pointers">
<h2><a href="./">Go by Example</a>: Pointers</h2> <h2><a href="./">Go by Example</a>: Pointers</h2>
<a href="http://play.golang.org/p/KdE4TBbUL2"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="random-numbers"> <div class="example" id="random-numbers">
<h2><a href="./">Go by Example</a>: Random Numbers</h2> <h2><a href="./">Go by Example</a>: Random Numbers</h2>
<a href="http://play.golang.org/p/C0_kuFx3ET"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="range"> <div class="example" id="range">
<h2><a href="./">Go by Example</a>: Range</h2> <h2><a href="./">Go by Example</a>: Range</h2>
<a href="http://play.golang.org/p/Ys3V-ohVRy"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="range-over-channels"> <div class="example" id="range-over-channels">
<h2><a href="./">Go by Example</a>: Range over Channels</h2> <h2><a href="./">Go by Example</a>: Range over Channels</h2>
<a href="http://play.golang.org/p/WN7NNh9tvh"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="rate-limiting"> <div class="example" id="rate-limiting">
<h2><a href="./">Go by Example</a>: Rate Limiting</h2> <h2><a href="./">Go by Example</a>: Rate Limiting</h2>
<a href="http://play.golang.org/p/e7yzIk97-p"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="reading-files"> <div class="example" id="reading-files">
<h2><a href="./">Go by Example</a>: Reading Files</h2> <h2><a href="./">Go by Example</a>: Reading Files</h2>
<a href="http://play.golang.org/p/VcLqpSwnkN"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="recursion"> <div class="example" id="recursion">
<h2><a href="./">Go by Example</a>: Recursion</h2> <h2><a href="./">Go by Example</a>: Recursion</h2>
<a href="http://play.golang.org/p/RFn-rf42ap"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="regular-expressions"> <div class="example" id="regular-expressions">
<h2><a href="./">Go by Example</a>: Regular Expressions</h2> <h2><a href="./">Go by Example</a>: Regular Expressions</h2>
<a href="http://play.golang.org/p/7bnr2EXlxK"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="select"> <div class="example" id="select">
<h2><a href="./">Go by Example</a>: Select</h2> <h2><a href="./">Go by Example</a>: Select</h2>
<a href="http://play.golang.org/p/NGSkDrli6L"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="sha1-hashes"> <div class="example" id="sha1-hashes">
<h2><a href="./">Go by Example</a>: SHA1 Hashes</h2> <h2><a href="./">Go by Example</a>: SHA1 Hashes</h2>
<a href="http://play.golang.org/p/YUaWWEeB4U"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="signals"> <div class="example" id="signals">
<h2><a href="./">Go by Example</a>: Signals</h2> <h2><a href="./">Go by Example</a>: Signals</h2>
<a href="http://play.golang.org/p/d42wO1q1oh"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="slices"> <div class="example" id="slices">
<h2><a href="./">Go by Example</a>: Slices</h2> <h2><a href="./">Go by Example</a>: Slices</h2>
<a href="http://play.golang.org/p/dPQErsP6Yc"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="sorting"> <div class="example" id="sorting">
<h2><a href="./">Go by Example</a>: Sorting</h2> <h2><a href="./">Go by Example</a>: Sorting</h2>
<a href="http://play.golang.org/p/roQOJXtqAb"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="sorting-by-functions"> <div class="example" id="sorting-by-functions">
<h2><a href="./">Go by Example</a>: Sorting by Functions</h2> <h2><a href="./">Go by Example</a>: Sorting by Functions</h2>
<a href="http://play.golang.org/p/M06NADP985"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="spawning-processes"> <div class="example" id="spawning-processes">
<h2><a href="./">Go by Example</a>: Spawning Processes</h2> <h2><a href="./">Go by Example</a>: Spawning Processes</h2>
<a href="http://play.golang.org/p/utd_H-XJtC"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="stateful-goroutines"> <div class="example" id="stateful-goroutines">
<h2><a href="./">Go by Example</a>: Stateful Goroutines</h2> <h2><a href="./">Go by Example</a>: Stateful Goroutines</h2>
<a href="http://play.golang.org/p/2YrrJo4H6W"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="string-formatting"> <div class="example" id="string-formatting">
<h2><a href="./">Go by Example</a>: String Formatting</h2> <h2><a href="./">Go by Example</a>: String Formatting</h2>
<a href="http://play.golang.org/p/qayRuqXHym"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="string-functions"> <div class="example" id="string-functions">
<h2><a href="./">Go by Example</a>: String Functions</h2> <h2><a href="./">Go by Example</a>: String Functions</h2>
<a href="http://play.golang.org/p/COXm374QWe"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="structs"> <div class="example" id="structs">
<h2><a href="./">Go by Example</a>: Structs</h2> <h2><a href="./">Go by Example</a>: Structs</h2>
<a href="http://play.golang.org/p/OMCP5KFC10"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="switch"> <div class="example" id="switch">
<h2><a href="./">Go by Example</a>: Switch</h2> <h2><a href="./">Go by Example</a>: Switch</h2>
<a href="http://play.golang.org/p/8b5CajPcHn"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="tickers"> <div class="example" id="tickers">
<h2><a href="./">Go by Example</a>: Tickers</h2> <h2><a href="./">Go by Example</a>: Tickers</h2>
<a href="http://play.golang.org/p/U0PO7ZZU3l"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="time"> <div class="example" id="time">
<h2><a href="./">Go by Example</a>: Time</h2> <h2><a href="./">Go by Example</a>: Time</h2>
<a href="http://play.golang.org/p/NxuQTlVA2l"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="time-formatting-parsing"> <div class="example" id="time-formatting-parsing">
<h2><a href="./">Go by Example</a>: Time Formatting / Parsing</h2> <h2><a href="./">Go by Example</a>: Time Formatting / Parsing</h2>
<a href="http://play.golang.org/p/JqNGqbuqF1"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="timeouts"> <div class="example" id="timeouts">
<h2><a href="./">Go by Example</a>: Timeouts</h2> <h2><a href="./">Go by Example</a>: Timeouts</h2>
<a href="http://play.golang.org/p/CoBnJiRyx3"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="timers"> <div class="example" id="timers">
<h2><a href="./">Go by Example</a>: Timers</h2> <h2><a href="./">Go by Example</a>: Timers</h2>
<a href="http://play.golang.org/p/6fSHrYxpMu"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="url-parsing"> <div class="example" id="url-parsing">
<h2><a href="./">Go by Example</a>: URL Parsing</h2> <h2><a href="./">Go by Example</a>: URL Parsing</h2>
<a href="http://play.golang.org/p/eaMv0skOfY"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="values"> <div class="example" id="values">
<h2><a href="./">Go by Example</a>: Values</h2> <h2><a href="./">Go by Example</a>: Values</h2>
<a href="http://play.golang.org/p/fgGVOyuZdu"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="variables"> <div class="example" id="variables">
<h2><a href="./">Go by Example</a>: Variables</h2> <h2><a href="./">Go by Example</a>: Variables</h2>
<a href="http://play.golang.org/p/Zv45CSMaiD"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="variadic-functions"> <div class="example" id="variadic-functions">
<h2><a href="./">Go by Example</a>: Variadic Functions</h2> <h2><a href="./">Go by Example</a>: Variadic Functions</h2>
<a href="http://play.golang.org/p/wRPLOM1VIH"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="worker-pools"> <div class="example" id="worker-pools">
<h2><a href="./">Go by Example</a>: Worker Pools</h2> <h2><a href="./">Go by Example</a>: Worker Pools</h2>
<a href="http://play.golang.org/p/y12QxBsKtT"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -20,6 +20,7 @@
<body> <body>
<div class="example" id="writing-files"> <div class="example" id="writing-files">
<h2><a href="./">Go by Example</a>: Writing Files</h2> <h2><a href="./">Go by Example</a>: Writing Files</h2>
<a href="http://play.golang.org/p/5usz1Oc-xY"><img height="16" width="16" title="Run code" src="play.png" style="float:right" /></a>
<table> <table>

View File

@ -244,14 +244,14 @@ func parseExamples() []*Example {
example.GoCodeHash, example.UrlHash = parseHashFile(sourcePath) example.GoCodeHash, example.UrlHash = parseHashFile(sourcePath)
default: default:
sourceSegs, filecontents := parseAndRenderSegs(sourcePath) sourceSegs, filecontents := parseAndRenderSegs(sourcePath)
if (filecontents != "") { if filecontents != "" {
example.GoCode = filecontents example.GoCode = filecontents
} }
example.Segs = append(example.Segs, sourceSegs) example.Segs = append(example.Segs, sourceSegs)
} }
} }
newCodeHash := sha1Sum(example.GoCode) newCodeHash := sha1Sum(example.GoCode)
if (example.GoCodeHash != newCodeHash) { if example.GoCodeHash != newCodeHash {
example.UrlHash = resetUrlHashFile(newCodeHash, example.GoCode, "examples/"+example.Id+"/"+example.Id+".hash") example.UrlHash = resetUrlHashFile(newCodeHash, example.GoCode, "examples/"+example.Id+"/"+example.Id+".hash")
} }
examples = append(examples, &example) examples = append(examples, &example)