12.golangbyexample/

directory
v0.0.0-...-d0adc60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MIT

README

Refer golangbyexample.com

Design pattern

01.abstrct
cd 01.abstract && go run .
02.builder
cd 02.builder && go run .
03.factory
cd 03.factory && go run .
04.object
cd 04.object && go run .
05.prototype
cd 05.prototype && go run .
06.singleton
cd 06.singleton && go run .
07.chain
cd 07.chain && go run .
08.command
cd 08.command && go run .
09.iterator
cd 09.iterator && go run .
10.mediator
cd 10.mediator && go run .
11.memento
cd 11.memento && go run .
12.null
cd 12.null && go run .
13.observer
cd 13.observer && go run .
14.state
cd 14.state && go run .
15.strategy
cd 15.strategy && go run .
16.template
cd 16.template && go run .
17.visitor
cd 17.visitor && go run .
18.adapter
cd 18.adapter && go run .
19.bridge
cd 19.bridge && go run .
20.composite
cd 20.composite && go run .
21.facade
cd 21.facade && go run .
22.flyweight
cd 22.flyweight && go run .
23.proxy
cd 23.proxy && go run .
24.inherit
cd 24.inherit && go run .
25.polymorphism
cd 25.polymorphism && go run exaxmple.go
cd 25.polymorphism && go run exaxmple_tax.go
cd 25.polymorphism && go run exaxmple_overloading.go
26.abstract
cd 26.abstract && go run example.go
27.Encapsulation
cd 27.encapsulation && go run example.go
28.ProtocolBuffer
cd 28.ProtocolBuffer
protoc -I ./ --go_out=./ ./person/person.proto
go run main.go

Files

29.readfiles
cd 29.readfiles
go run word.go
go run line.go
30.writefiles
cd 30.writefiles && go run write.go
cd 30.writefiles && go run writeFile.go
31.deletefile
cd 31.deletefile && touch sample.txt; go run del_file.go
cd 31.deletefile && mkdir sample && go run del_folder.go
32.updatefile
cd 32.updatefile && touch sample.txt; go run update_file.go
33.genericfile
34.time
35.os
36.array
37.map
38.query_params
curl -v "http://localhost:8080/products1?filters=red&filters=color&filters=price&filters=brand"
curl -v "http://localhost:8080/products1?filters=color"

curl -v "http://localhost:8080/products2?filters=red&filters=color&filters=price&filters=brand"

curl -v "http://localhost:8080/products3?filters=red&filters=color&filters=price&filters=brand"

curl -v "http://localhost:8080/products4?filters=red&filters=color&filters=price&filters=brand"
39.queue
40.stack
41.set
42.linkedlist
43.binarysearch
44.heap
45.trie
46.sort
47.network
curl -v -X GET http://172.17.0.2:8080/getIp
curl -v -H "X-REAL-IP: 172.17.0.2" -X GET http://172.17.0.2:8080/getIp
curl -v -H "X-FORWARDED-FOR: 172.17.0.2" -X GET http://172.17.0.2:8080/getIp
48.logger
49.channel
50.goroutine
51.datatypes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL