Adonais's notebook


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Search

[React] Update state

Posted on 2019-11-13 | In Frontend , React , State |
Update nested state Every level of nesting must by copied and updated appropriately Mistake 1: New reference directly mutate original state 12345678 ...
Read more »

[Go] TCP Server

Posted on 2019-10-08 | In Language , Go |
A bunch of brief intro of writing TCP server from scratch code. Write to connection123456789101112131415161718192021222324252627import ( "fmt" ...
Read more »

[Go] Module

Posted on 2019-10-07 | In Language , Go |
Documentation Module: A module is a collection of Go package stored in a file tree with a go.mod file at its root. The go.mod file defines the module’ ...
Read more »

[Go] Interface

Posted on 2019-10-07 | In Language , Go |
InterfacesAn interface type is defined as a set of method signatures. A value of interface type can hold any value that implements those methods. 1234 ...
Read more »

[Go] Methods & Interfaces

Posted on 2019-10-03 | In Language , Go |
MethodsYou can define methods on types. A method is a function with a spetial receiver argument. The receiver appears in its own argument list between ...
Read more »

[Go] Range, Map, Functions

Posted on 2019-10-02 | In Language , Go |
RangeThe range form of the for loop iterates over a slice or map. When ranging over a slice, two values are returned for each iteration. The first is ...
Read more »

[Go] Pointers, Struct, Array

Posted on 2019-10-02 | In Language , Go |
PointersGo has pointers. A pointer holds the memory address of a value. The type *T is a pointer to a T value. Its zero value is nil var p *int The &a ...
Read more »

[Go] Flow Control

Posted on 2019-10-01 | In Language , Go |
For loopfor loop is the only looping construct in Go. 12345678910111213141516171819202122232425262728293031func main() { sum := 0 for i := ...
Read more »

[Go] Basic

Posted on 2019-09-30 | In Language , Go |
Go Commandsgo fmt: format the .go files in the current directorygo fmt ./...: format everything in the current and children directory.go run <FILE_ ...
Read more »

[Concurrency] Basic Concepts

Posted on 2019-07-27 | In Concurrency , Basic |
Video Introduction: https://www.youtube.com/watch?v=prFEyaUEAMM&t=1 https://www.youtube.com/watch?v=x1xNUZ4OysA&t=4s https://www.youtube.com ...
Read more »
1…567…14

Adonais0

140 posts
131 categories
112 tags
GitHub Twitter
© 2024 Adonais0
Powered by Hexo
|
Theme — NexT.Mist v7.8.0