-
find the rule Following example from 100 ~ 999 and print
example: 153 = 1^3 + 5^3 + 3^3
- usage for fmt.Printf related.
-
goroutine usage
-
tcp connection
-
message notification: login, rename, send message, broadcast, auto-timeout, leave...
- simulate to upload file from client to server
-
slice: pass ref to function and print as if updated.
-
swap: pass ref to swap
-
updateDiff: difference from byValue and byRef
- use channel implement fibonacci number
- time.After usage
-
crawl for goroutine, regex and fileIO
-
/src usage: get data and write file to src folder
- print 1! + 2! + ... + n!
- use scanf to get type and get number for odd or even
- scanf and switch implement classical 'guessNumber'
- polymorphism func type concept and variadic function demo
-
input number
-
check range from 1 ~ number as complete (sum of factor equal number self)
- first letter equal last, second equal second last and so on...
- count the char from one string for letter, space, number and others.
- large numbers of manual addition simulation
-
check ext existed
-
accumlate
- rewrite map usage with structure
-
differentiation for sync.Mutex and sync.RWMutex execute performance
-
RWMutext usage: frequency of reading is greater than writing
-
bubble
-
selection
-
insertion
-
quick
- implement: push, find, insert, unshift, count, interator
-
model: book, student
-
action: borrow, return, checkin, checkout
- reflect int, structure, set value, ...
-
load balance
-
interface implement
-
easy to extend loadBalance algorithm
- serialize && deserialize
-
charCount
-
copy file
-
readline
- channel, select, time.after usage
- get website status and set timeout
-
simple http handler
-
form parser handler
-
middleware for handling panic
-
template render with dynamic vars.
- CRUD with mySQL database
- handle http get timeout