before we try this
This commit is contained in:
parent
5f9b4d2eb4
commit
1ef0ead109
@ -1,10 +1,10 @@
|
|||||||
|
# basics
|
||||||
hello-world
|
hello-world
|
||||||
values
|
values
|
||||||
variables
|
variables
|
||||||
mutation
|
mutation
|
||||||
literals
|
literals
|
||||||
constants
|
constants
|
||||||
reading-input
|
|
||||||
for
|
for
|
||||||
if-else
|
if-else
|
||||||
case
|
case
|
||||||
@ -14,7 +14,6 @@ range
|
|||||||
floats
|
floats
|
||||||
slices
|
slices
|
||||||
maps
|
maps
|
||||||
ok-guards
|
|
||||||
nesting
|
nesting
|
||||||
functions
|
functions
|
||||||
returns
|
returns
|
||||||
@ -31,6 +30,10 @@ fields
|
|||||||
methods
|
methods
|
||||||
embedding
|
embedding
|
||||||
interfaces
|
interfaces
|
||||||
|
ok-guards
|
||||||
|
errors
|
||||||
|
|
||||||
|
# concurrency
|
||||||
goroutines
|
goroutines
|
||||||
concurrency
|
concurrency
|
||||||
channels
|
channels
|
||||||
@ -39,24 +42,58 @@ directions
|
|||||||
synchronization
|
synchronization
|
||||||
select
|
select
|
||||||
timeouts
|
timeouts
|
||||||
string-functions
|
scatter-gather
|
||||||
bytes
|
rate-limiting
|
||||||
command-line-arguments
|
|
||||||
burstable-rate-limiting
|
burstable-rate-limiting
|
||||||
elapsed
|
worker-pool
|
||||||
email
|
|
||||||
enumerable
|
# core libraries
|
||||||
env
|
sort
|
||||||
|
sort-by-function
|
||||||
|
string-functions
|
||||||
|
string-formatting
|
||||||
|
regexs
|
||||||
|
bytes
|
||||||
|
json
|
||||||
|
sha1-hashes
|
||||||
|
time
|
||||||
epoch
|
epoch
|
||||||
errors
|
elapsed
|
||||||
exec
|
timers
|
||||||
exit
|
tickers
|
||||||
|
rand
|
||||||
|
number-parsing
|
||||||
|
enumerable
|
||||||
|
urls
|
||||||
|
|
||||||
|
# systems
|
||||||
file-open
|
file-open
|
||||||
file-read
|
file-read
|
||||||
file-write
|
file-write
|
||||||
|
command-line-arguments
|
||||||
command-line-flags
|
command-line-flags
|
||||||
http-client-basic
|
env
|
||||||
|
signals
|
||||||
|
exit
|
||||||
|
spawn
|
||||||
|
exec
|
||||||
|
reading-input
|
||||||
|
users
|
||||||
|
line-filter
|
||||||
|
|
||||||
|
# network clients
|
||||||
|
tcp-client
|
||||||
http-client
|
http-client
|
||||||
|
http-client-basic
|
||||||
|
https-client
|
||||||
|
redis
|
||||||
|
postgres
|
||||||
|
email
|
||||||
|
|
||||||
|
# network servers
|
||||||
|
tcp-server
|
||||||
|
|
||||||
|
# web apps
|
||||||
http-server-basic
|
http-server-basic
|
||||||
http-server-canonical-host
|
http-server-canonical-host
|
||||||
http-server-graceful-shutdown
|
http-server-graceful-shutdown
|
||||||
@ -68,28 +105,4 @@ http-server-static-select
|
|||||||
http-server-static
|
http-server-static
|
||||||
http-server-status-code
|
http-server-status-code
|
||||||
http-server
|
http-server
|
||||||
https-client
|
|
||||||
https-server
|
https-server
|
||||||
json
|
|
||||||
number-parsing
|
|
||||||
postgres
|
|
||||||
rand
|
|
||||||
rate-limiting
|
|
||||||
redis
|
|
||||||
regexs
|
|
||||||
scatter-gather
|
|
||||||
sha1-hashes
|
|
||||||
signals
|
|
||||||
sort
|
|
||||||
sort-by-function
|
|
||||||
spawn
|
|
||||||
string-formatting
|
|
||||||
tcp-client
|
|
||||||
tcp-server
|
|
||||||
tickers
|
|
||||||
time
|
|
||||||
timers
|
|
||||||
urls
|
|
||||||
users
|
|
||||||
worker-pool
|
|
||||||
line-filter
|
|
@ -37,7 +37,13 @@ func main() {
|
|||||||
// read names from index
|
// read names from index
|
||||||
indexBytes, idxErr := ioutil.ReadFile("tool/index.txt")
|
indexBytes, idxErr := ioutil.ReadFile("tool/index.txt")
|
||||||
if idxErr != nil { panic (idxErr) }
|
if idxErr != nil { panic (idxErr) }
|
||||||
indexNames := strings.Split(string(indexBytes), "\n")
|
indexNamesAll := strings.Split(string(indexBytes), "\n")
|
||||||
|
indexNames := make([]string, 0)
|
||||||
|
for _, indexName := range indexNamesAll {
|
||||||
|
if (indexName !=) "" && !(indexName.Contains("#")) {
|
||||||
|
indexNames := append(indexNames, indexName)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// sanity check two lists
|
// sanity check two lists
|
||||||
if len(sourceNames) != len(indexNames) {
|
if len(sourceNames) != len(indexNames) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user