{"id":13592130,"url":"https://github.com/betty200744/ultimate-go","last_synced_at":"2025-05-15T14:07:42.981Z","repository":{"id":44413003,"uuid":"209675543","full_name":"betty200744/ultimate-go","owner":"betty200744","description":"This repo contains my notes on working with Go and computer systems. ","archived":false,"fork":false,"pushed_at":"2024-05-10T09:02:19.000Z","size":15390,"stargazers_count":1933,"open_issues_count":10,"forks_count":140,"subscribers_count":40,"default_branch":"master","last_synced_at":"2025-04-07T18:10:25.008Z","etag":null,"topics":["algorithms","data-structures","docker-compose","example","gin","go","golang","gorm","grpc","kafka"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/betty200744.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-20T01:01:26.000Z","updated_at":"2025-04-02T09:12:56.000Z","dependencies_parsed_at":"2024-11-29T17:03:50.566Z","dependency_job_id":"05984232-8a80-449c-898a-5ead8bdf6bc9","html_url":"https://github.com/betty200744/ultimate-go","commit_stats":{"total_commits":416,"total_committers":5,"mean_commits":83.2,"dds":0.34375,"last_synced_commit":"4eb7b634c609cf65c6c9febf2ef1a2c7c3c017c3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betty200744%2Fultimate-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betty200744%2Fultimate-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betty200744%2Fultimate-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betty200744%2Fultimate-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/betty200744","download_url":"https://codeload.github.com/betty200744/ultimate-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254355335,"owners_count":22057354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithms","data-structures","docker-compose","example","gin","go","golang","gorm","grpc","kafka"],"created_at":"2024-08-01T16:01:06.061Z","updated_at":"2025-05-15T14:07:37.966Z","avatar_url":"https://github.com/betty200744.png","language":"Go","funding_links":[],"categories":["Go","Repositories"],"sub_categories":[],"readme":"## Motivation\n\nThis repo contains my notes on work with Go and computer systems\n\n## Table of Contents\n\n- **Language Specification**\n    - **Syntax**\n        - Variables: [Zero value concept | Initialization | Const](./Language_Specification/variables/variables.go)\n        - Constant: [Initialization | iota](./Language_Specification/constant/constant.go)\n        - Conversions: [Conversion](./Language_Specification/conversions/conversions.go)\n        -\n      Struct: [Declare_Initialize | Name And Anonymous type](Language_Specification/reference-type/struct/structs_Declare_Initialize.go)\n      [Field | Field Function| Iterate Field Name And Value | Selector and Promoted](Language_Specification/reference-type/struct/struct_field.go)\n      | [Method Set](Language_Specification/reference-type/struct/struct_method_set.go)\n        - Struct Tags: [Wiki](https://github.com/golang/go/wiki/Well-known-struct-tags)\n          | [Code](Language_Specification/reference-type/struct/struct_tag.go)\n          | [Tag-Doc](Language_Specification/reference-type/struct/struct_tags.md)\n        - Pointer:\n            - [Passing by value | Escape analysis | Stack space ](./Language_Specification/build-in-type/pointers/pointers.go)\n\n      Function: [Initialization | argument | multiple returns | named return ](./Language_Specification/reference-type/function/functions.go)\n        - Build-in types: [Built-in types](Language_Specification/build-in-type)\n        - statement: [statement](./Language_Specification/statements/statements.md)\n          | [if else](./Language_Specification/statements/if_else.go)\n          | [for](./Language_Specification/statements/for.go) | [switch](./Language_Specification/statements/switch.go)\n          | [select](./Language_Specification/statements/select.go) | [go](https://golang.org/ref/spec#Go_statements)\n    - **Data Structures**\n        - Enum: [Enum](./Language_Specification/enum/enum.go)\n        - Array: [CPU Cache | TLB | Initialization | Iteration | Type array | Contiguous memory allocation](Language_Specification/reference-type/array/arrays.go)\n        - Slice: [Initialization | Length vs Capacity | Reference Type | Appending | Slice of Slice](./Language_Specification/reference-type/slice/slices_cheat_sheet.go)\n      | [Map | Reduce | Filter | Include | All|Any ](./Language_Specification/reference-type/slice/slice_collection_function.go)\n        - Map: [Initialization | Iteration | Deleting | Finding | Restriction ](./Language_Specification/reference-type/map/maps.go)\n        - Channel: [Declare | Iteration | Exit | send statements |receive operations](./Language_Specification/reference-type/channel/channel_test.go)\n    - **Decoupling**\n        - Method:\n            - [Value and Pointer Receiver Call](Language_Specification/reference-type/method/methods_receiver.go)\n              | [wiki](https://github.com/golang/go/wiki/CodeReviewComments#receiver-type)\n            - [Value and Pointer Semantics](Language_Specification/reference-type/method/methods_receiver.go)\n            - [Methods are just functions | Function variable](Language_Specification/reference-type/struct/struct_method_set.go)\n            - [closures](./Language_Specification/closures/closures.go)\n        - Interface:\n            - [Declaring |Type assertions| Concrete type vs Interface type| Polymorphic function](./Language_Specification/reference-type/interfaces/interfaces_cheat_sheet.go)\n        - Embedding:\n            - [Declaring fields, NOT Embedding](Language_Specification/reference-type/struct_embedding/struct_embedding.go)\n            - [Embedding type | Inner type promotion](Language_Specification/reference-type/struct_embedding/struct_embedding.go)\n            - [Embedded type and Interface](Language_Specification/reference-type/struct_embedding/struct_embedding.go)\n            - [Outer and inner type implementing the same Interface](Language_Specification/reference-type/struct_embedding/struct_embedding.go)\n        - Exporting:\n            - [Exported identifier](./Language_Specification/exporting/exporting.go)\n            - [Accessing a value of an unexported identifier](./Language_Specification/exporting/exporting.go)\n            - [Unexported fields from an exported struct](./Language_Specification/exporting/exporting.go)\n    - **Dependency management** [Go Modules](./go_module.md)\n    - **Error Handling**\n        - [Default error values](./design-pattern/go-design/error_handling/error_handling.go)\n        - [Error variables](./design-pattern/go-design/error_handling/error_handling.go)\n          | [best practices](https://github.com/grpc/grpc-go/blob/master/codes/codes.go)\n        - [Type as context](./design-pattern/go-design/error_handling/error_handling.go)\n        - [Wrapping Errors](./design-pattern/go-design/grpc_go_error_handling)\n    - **Context**\n        - [Store and retrieve values from a context](./build-in-package/context/context_cheat_sheet.go)\n        - [WithCancel](./build-in-package/context/context_cheat_sheet.go)\n        - [WithDeadline](./build-in-package/context/context_cheat_sheet.go)\n        - [WithTimeout](./build-in-package/context/context_cheat_sheet.go)\n- **Concurrency** [LearnConcurrency](https://github.com/golang/go/wiki/LearnConcurrency)\n    - [Goroutine](./LearnConcurrency/learn_concurrency.md)\n        - [asynchronous network IO](./LearnConcurrency/basics/basics.go)\n    - [Channel](./LearnConcurrency/learn_concurrency.md)\n        - [Guideline](https://github.com/ardanlabs/gotraining/tree/master/topics/go#concurrent-software-design)\n        - [ping_pong](./LearnConcurrency/communicate_channel/ping_pong/ping_pong.go)\n        - [multiplexing](./LearnConcurrency/communicate_channel/multiplexing/multiplexing.go)\n        - [waitgroup](./LearnConcurrency/communicate_channel/waitgroup/waitgroup.go)\n        - [mutex](./LearnConcurrency/communicate_channel/mutex/mutex.go)\n        - [worker_pool](./LearnConcurrency/communicate_channel/worker_pool/worker_pool.go)\n        - [Select](./LearnConcurrency/communicate_channel/ping_pong/ping_pong.go)\n- **Diagnostics Profiling**\n    - Diagnostics [Diagnostics ](./diagnostics/profiling/profiling.md)\n    - Profiling [code](./diagnostics/profiling/pprof)\n    - Stack Trace: [Review](./diagnostics/profiling/pprof)\n    - GoLand Debug: [GoLand Debug](./diagnostics/goland_debug/goland_debug.go)\n      | [blog](https://blog.jetbrains.com/go/2020/03/03/how-to-find-goroutines-during-debugging/)\n- **Testing**\n    - Testing:\n        - [Basic Unit Test](./main_test.go)\n        - [Web Server](awesome-go/bazel/go-tutorial/test/publish_test.go)\n        - [Mock](mock/golang/mock/) | [Mock Server](./awesome-go/grpc-go-mock/mock_helloworld/hw_mock.go)\n    - Fuzzing\n        - [Guideline](https://github.com/ardanlabs/gotraining/blob/master/topics/fuzzing/README.md)\n- **Design Pattern** [Design Patterns](https://en.wikipedia.org/wiki/Design_Patterns)\n  | [javatpoint](https://www.javatpoint.com/prototype-design-pattern)\n    - SOLID: [SOLID](https://en.wikipedia.org/wiki/SOLID)\n    - Creational\n        - Simple Factory: [wiki](https://en.wikipedia.org/wiki/Factory_(object-oriented_programming))\n          | [code](./design-pattern/creational/simple_factory) | [best practices](./awesome-go/go-redis/main.go)\n        - *Abstract factory: [wiki](https://en.wikipedia.org/wiki/Abstract_factory_pattern)\n          | [code](./design-pattern/creational/abstract_factory/abstract_factory.go) | [best practices]()\n        - *Builder: [wiki](https://en.wikipedia.org/wiki/Builder_pattern)\n          | [code1](./design-pattern/creational/builder/builder.go)\n          | [code2](./design-pattern/creational/builder/builder2.go)\n          | [best practices orm query build](./awesome-go/gorm/gorm_query_build.go)\n          | [best practices es query build](https://github.com/olivere/elastic/wiki/Search)\n        - Factory method: [wiki](https://en.wikipedia.org/wiki/Factory_method_pattern)\n          | [code](./design-pattern/creational/factory_method/factory_method.go)\n          | [best practices](./awesome-go/kafkaSarama/sarama_comsumer_group.go)\n        - *Object Pool Pattern: [wiki](https://golangbyexample.com/golang-object-pool/)\n          | [code](./design-pattern/creational/object_pool/object_pool.go)\n          | [best practices bilibili redis pool](https://github.com/whjstc/openbilibili-go-common-1/tree/master/library/cache/redis)\n        - *Prototype: [wiki](https://en.wikipedia.org/wiki/Prototype_pattern)\n          | [code](./design-pattern/creational/prototype/prototype.go)\n          | [best practices](./awesome-go/grpc-go/helloworld/greeter_client/main.go)\n        - *Singleton: [wiki](https://en.wikipedia.org/wiki/Singleton_pattern)\n          | [code](./design-pattern/creational/singleton) | [best practices](./readme.md)\n    - Structual\n        - Adapter: [wiki](https://en.wikipedia.org/wiki/Adapter_pattern)\n          | [code](./design-pattern/structual/adapter/adapter.go)\n          | [best practices](./awesome-go/go-redis/redisClient/redis.go)\n        - *Bridge: [wiki](https://en.wikipedia.org/wiki/Bridge_pattern)\n          | [code](./design-pattern/structual/bridge/bridge.go) | [best practices](./readme.md)\n        - Composite: [wiki](https://en.wikipedia.org/wiki/Composite_pattern)\n          | [code](./design-pattern/structual/bridge/bridge.go)\n          | [best practices](./algorithms/data-structures/tree/binary_search_tree/binary_search_tree.go)\n        - *Decorator: [wiki](https://en.wikipedia.org/wiki/Decorator_pattern)\n          | [code](./design-pattern/structual/decorator/decorator.go)\n          | [best practices](https://github.com/avast/retry-go)\n        - Facade: [wiki](https://en.wikipedia.org/wiki/Facade_pattern)\n          | [code](./design-pattern/structual/facade/facade.go) | [best practices](./readme.md)\n        - Flyweight: todo[wiki](https://en.wikipedia.org/wiki/Flyweight_pattern) | [code](./readme.md)\n          | [best practices](./readme.md)\n        - Proxy (network proxy): [wiki](https://en.wikipedia.org/wiki/Proxy_pattern)\n          | [code](./design-pattern/structual/proxy/proxy.go) | [best practices](./readme.md)\n    - Behavioral\n        - *Chain of responsibility: [wiki](https://en.wikipedia.org/wiki/Chain-of-responsibility_pattern)\n          | [code](./design-pattern/behavioral/chain_of_responsibility/chain_of_responsibility.go)\n          | [best practices](./awesome-go/gin/gin.go)\n        - Command: todo [wiki](https://en.wikipedia.org/wiki/Command_pattern) | [code](./readme.md)\n          | [best practices](./readme.md)\n        - *Interpreter: todo[wiki](https://en.wikipedia.org/wiki/Interpreter_pattern) | [code](./readme.md)\n          | [best practices](./readme.md)\n        - *Iterator: [wiki](https://en.wikipedia.org/wiki/Iterator_pattern) | [code](./readme.md)\n          | [best practices](./readme.md)\n        - Mediator: todo[wiki](https://en.wikipedia.org/wiki/Mediator_pattern) | [code](./readme.md)\n          | [best practices](./readme.md)\n        - Memento: todo[wiki](https://en.wikipedia.org/wiki/Memento_pattern) | [code](./readme.md)\n          | [best practices](./readme.md)\n        - Observer: todo[wiki](https://en.wikipedia.org/wiki/Observer_pattern) | [code](./readme.md)\n          | [best practices](./readme.md)\n        - State: todo[wiki](https://en.wikipedia.org/wiki/State_pattern) | [code](./readme.md)\n          | [best practices](./readme.md)\n        - *Strategy: [wiki](https://en.wikipedia.org/wiki/Strategy_pattern) | [code](./readme.md)\n          | [best practices](./awesome-go/kafkaSarama/sarama_comsumer_group.go)\n        - Template method : todo[wiki](https://en.wikipedia.org/wiki/Template_method_pattern) | [code](./readme.md)\n          | [best practices](./readme.md)\n        - Visitor: todo[wiki](https://en.wikipedia.org/wiki/Visitor_pattern) | [code](./readme.md)\n          | [best practices](./readme.md)\n    - Composition:\n      [Guideline](https://github.com/ardanlabs/gotraining/tree/master/topics/go#interface-and-composition-design)\n        - Conversion:\n            - [Interface Conversions | Type Assertion](./design-pattern/go-design/conversion/conversion.go)\n            - [Runtime Type Assertion](./design-pattern/go-design/runtime_type_assertion/runtime_type_assertion.go)    \n              **Algorithms** [Algorithms](./algorithms/algorithms.md)\n    - Data Structures\n        - [Binary Search Tree](./algorithms/data-structures/tree/binary_search_tree)\n          |  [(wiki)](https://en.wikipedia.org/wiki/Binary_search_tree)\n          | [(mit)](https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-006-introduction-to-algorithms-fall-2011/lecture-videos/MIT6_006F11_lec05.pdf)\n        - [Binary Tree](./algorithms/data-structures/tree/binary_tree)\n          |  [(wiki)](http://en.wikipedia.org/wiki/Binary_tree)\n        - [Graph](./readme.md)[(wiki)](http://en.wikipedia.org/wiki/Graph_%28abstract_data_type)\n        - [Hash Tables](./algorithms/data-structures/hashing)   | [(wiki)](http://en.wikipedia.org/wiki/Hash_table)\n        - [Linked List](./algorithms/data-structures/lists/lists.go)\n          | [(wiki)](http://en.wikipedia.org/wiki/Linked_list)\n            - [Singly Linked List](./algorithms/data-structures/lists/singlylinkedlist/singlylinkedlist.go)\n              |  [(wiki)](https://en.wikipedia.org/wiki/Linked_list#Singly_linked_list)\n            - [Doubly linked list](./algorithms/data-structures/lists/doublelinkedlist/doublelinkedlist.go)\n              |  [(wiki)](https://en.wikipedia.org/wiki/Doubly_linked_list)\n        - [Matrix](./readme.md)  | [(wiki)](http://en.wikipedia.org/wiki/Matrix_(mathematics))\n        - [Max Heap](./algorithms/data-structures/heap/maxheap/maxheap.go)\n          | [(wiki)](http://en.wikipedia.org/wiki/Heap_%28data_structure%29)\n        - [Min Heap](./algorithms/data-structures/heap/minheap/minheap.go)\n          | [(wiki)](http://en.wikipedia.org/wiki/Heap_%28data_structure%29)\n        - [Priority Queue](./algorithms/data-structures/queue/queue.go)\n          | [(wiki)](http://en.wikipedia.org/wiki/Priority_queue)\n        - [Queue](./algorithms/data-structures/queue/queue.go)\n          | [(wiki)](http://en.wikipedia.org/wiki/Queue_%28abstract_data_type%29)\n        - [Stack](./algorithms/data-structures/stack/stack.go)\n          | [(wiki)](http://en.wikipedia.org/wiki/Stack_%28abstract_data_type%29)\n    - Graph algorithms\n        - Searching:\n            - [Depth First Search](./readme.md)   |  [(wiki)](http://en.wikipedia.org/wiki/Depth-first_search)\n            - [Breadth First Search](./readme.md)   |  [(wiki)](http://en.wikipedia.org/wiki/Breadth-first_search)\n    - shortest path:\n        - [Dijkstra](./readme.md)  | [(wiki)](http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm)\n    - Sorting:\n        - [Topological Sort](./readme.md) |  [(wiki)](http://en.wikipedia.org/wiki/Topological_sorting)\n    - Maths algorithms\n        - [Binary GCD algorithm](./algorithms/maths_algorithms/GCD/gcd.go)\n          |  [(wiki)](https://en.wikipedia.org/wiki/Binary_GCD_algorithm)\n        - [Closest pairs](./readme.md)   | [(wiki)](http://en.wikipedia.org/wiki/Closest_pair_of_points_problem)\n        - [FastPower](./readme.md)  | [(wiki)](http://en.wikipedia.org/wiki/Exponentiation_by_squaring)\n        - [Fibonacci](./algorithms/maths_algorithms/fibonacci/fibonacci.go)\n          | [(wiki)](http://en.wikipedia.org/wiki/Fibonacci_number)\n        - [Fisher-Yates Shuffle-yates](./readme.md)\n          |  [(wiki)](http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle)\n        - [Erastothenes Sieve](./readme.md)   |  [(wiki)](https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes)\n        - [Extented GCD algorithm](./readme.md)   |  [(wiki)](http://en.wikipedia.org/wiki/Extended_Euclidean_algorithm)\n        - [Karatsuba's Multiplication](./readme.md)   |  [(wiki)](http://en.wikipedia.org/wiki/Karatsuba_algorithm)\n        - [Newton's Squarenewton-sqrt](./readme.md)   |  [(wiki)](http://en.wikipedia.org/wiki/Newton%27s_method)\n        - [Permutations Count](./readme.md)\n        - [Strassen's matrixstrassen](./readme.md) |  [(wiki)](http://en.wikipedia.org/wiki/Strassen_algorithm)\n    - Sorting algorithms\n        - [Bubble Sort](algorithms/sorting-algorithms/bubble-sort/bubble-sort.go)\n          | [(wiki)](http://en.wikipedia.org/wiki/Bubble_sort)\n        - [Heap Sort](algorithms/sorting-algorithms/heap-sort/heap-sort.go)\n          | [(mit notes)](https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-006-introduction-to-algorithms-fall-2011/lecture-videos/MIT6_006F11_lec04.pdf)\n          | [(wiki)](http://en.wikipedia.org/wiki/Heapsort)\n        - [Quick Sort](algorithms/sorting-algorithms/quick_sort/quick_sort.go)\n          | [(wiki)](http://en.wikipedia.org/wiki/Quicksort)\n        - [Merge Sort](algorithms/sorting-algorithms/merge_sort/merge_sort.go)\n          | [(mit notes)](https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-006-introduction-to-algorithms-fall-2011/lecture-videos/MIT6_006F11_lec03.pdf)\n          | [(wiki)](http://en.wikipedia.org/wiki/Merge_sort)\n        - [Insertion Sort](algorithms/sorting-algorithms/insertion-sort/insertion-sort.go)[(mit notes)](https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-006-introduction-to-algorithms-fall-2011/lecture-videos/MIT6_006F11_lec03.pdf)\n          | [(wiki)](http://en.wikipedia.org/wiki/Insertion_sort)\n        - [Shell Sort](algorithms/sorting-algorithms/shell-sort/shell-sort.go)\n          | [(wiki)](http://en.wikipedia.org/wiki/Shellsort)\n        - [Selection Sort](algorithms/sorting-algorithms/select_sort/select_sort.go)\n          | [(wiki)](http://en.wikipedia.org/wiki/Selection_sort)\n    - Searching algorithms\n        - [Binary Search]() | [wiki](http://en.wikipedia.org/wiki/Binary_search_algorithm)\n- **Crypto**\n    - **Hashing** [wiki](https://en.wikipedia.org/wiki/Cryptographic_hash_function)\n      | [MIT](https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-046j-design-and-analysis-of-algorithms-spring-2015/lecture-notes/MIT6_046JS15_lec21.pdf)\n        - md5, [wiki](https://en.wikipedia.org/wiki/MD5) |  [code](./build-in-package/crypto/hashing/md5/md5.go)\n        - sha1, [wiki](./build-in-package/crypto/hashing/sha1) |[code](./build-in-package/crypto/hashing/sha1/sha1.go)\n        - sha256, [wiki](https://en.wikipedia.org/wiki/Cryptographic_hash_function)\n          |[code](./build-in-package/crypto/hashing/sha256/sha256.go)\n        - sha512, [wiki](https://en.wikipedia.org/wiki/Cryptographic_hash_function)\n          |[code](./build-in-package/crypto/hashing/sha512/sha512.go)\n        - hmac, [wiki](https://en.wikipedia.org/wiki/HMAC)  |[code](./build-in-package/crypto/hashing/hmac/hmac.go)\n        - bcrypt, [wiki](https://en.wikipedia.org/wiki/Bcrypt)  |[code](./build-in-package/crypto/hashing/hmac/hmac.go)\n    - **Encryption or\n      Ciphers** [MIT](https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-046j-design-and-analysis-of-algorithms-spring-2015/lecture-notes/MIT6_046JS15_lec22.pdf)\n        - aes, [code](build-in-package/crypto/encrypter_decrypter_cipher/aes/aes.go)\n        - cipher, [code](build-in-package/crypto/encrypter_decrypter_cipher/cipher/cipher.go)\n        - des, [code](build-in-package/crypto/encrypter_decrypter_cipher)\n        - rc4, [code](build-in-package/crypto/encrypter_decrypter_cipher)\n        - rsa, [code](build-in-package/crypto/encrypter_decrypter_cipher)\n    - **Encoding**\n        - base64, [code](./build-in-package/encoding/base64/base64.go)\n- **databases**\n    - [PostgreSQL](https://github.com/betty200744/ultimate-postgresql-mysql)\n    - [MongoDB](https://github.com/betty200744/ultimate-postgresql-mysql)\n    - [MySQL](https://github.com/betty200744/ultimate-postgresql-mysql)\n    - [redis](https://github.com/betty200744/ultimate-postgresql-mysql)\n- **Awesome Go**\n    - [bazel_cpp](./awesome-go/bazel/cpp-tutorial)\n    - [bazel go](./awesome-go/bazel/go-tutorial)\n    - [config](./awesome-go/myconfig/myconfig.go)\n    - [beego](./awesome-go/beego/main.go)\n    - [go-redis](./awesome-go/go-redis/main.go)\n    - [freecache](./awesome-go/freecache/example)\n    - [localcache |best practices](./awesome-go/freecache/localcache/localcache.go)\n    - [gorm](./awesome-go/gorm/)\n    - [iris](./awesome-go/iris)\n    - [kafkaSarama](./awesome-go/kafkaSarama)\n    - [mapstructure](./awesome-go/mapstructure)\n    - [grpc](./awesome-go/grpc-go)\n    - [grpc mock](./awesome-go/grpc-go-mock)\n    - [zipkin](./awesome-go/zipkin)\n    - [websocket](./awesome-go/gorilla-websocket) |[echo](./build-in-package/websocket) | [chat](./awesome-go/gorilla-websocket/chat)\n    - [consul](./awesome-go/consul) | [register](./awesome-go/consul/register) |[grpc-resolver](./awesome-go/consul/consul-resolver)\n\n- **Docs**\n    - [elasticsearch](https://github.com/betty200744/ultimate-js/blob/master/docs/elasticsearch.md)\n    - [kafka](https://github.com/betty200744/ultimate-js/blob/master/docs/kafka.md)\n    - [rabbitmq](https://github.com/betty200744/ultimate-js/blob/master/docs/rabbitmq.md)\n    - [kubernetes](./kubernetes)\n- **Interview**\n    - When is `defer` called?\n      \u003e It was called according the consuming sequence of stack. That is to say, the first `defer` clause will be invoked as the last.\n    - `defer` and `panic` which is run first?\n      \u003e First `defer`, then `panic`.\n    - Difference between `new()` and `make()`?\n      \u003e For `new` function, it returns pointer. It is used when initiate struct. `Make` is mostly used when initiate *slice*, *map* and *channel*.\n    - Can `append()` receive pointer as parameter?\n      \u003e No.\n    - go run order, ![](./img/go_run_order.png)\n    - Can global variable declared with **short declaration**?\n      \u003e No.\n    - Difference between passing value and passing pointer as parameter of function?\n      \u003e When passing value, it will create a new copy. For pointer, it will pass the value itself.\n    - `str := \"hello\", str[1] = 'a'` Is the string gonna modified?\n      \u003e No. Because the string is a constant.\n    - Can we assign nil to `string`?\n      \u003e No. But we can assign nil to `*string`\n    - If `map` and `range` is executed by sequence?\n      \u003e No.\n    - If two slice object can be compared with `==`?\n      \u003e No.\n    - Is there a difference between new() and “regular” allocation?\n      \u003e No. \u0026Vector{} ， new(Vector) is the same, \n      \u003e one thing to note: new() is the only way to get a pointer to an unnamed integer or other basic type. \n      \u003e You can write \"p := new(int)\" but you can't write \"p := \u0026int{0}\". ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetty200744%2Fultimate-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetty200744%2Fultimate-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetty200744%2Fultimate-go/lists"}