Git Product home page Git Product logo

ultimate-go's Introduction

ultimate-go's People

Contributors

anymost avatar asutosh97 avatar aysusayin avatar battery233 avatar danrl avatar gabrielcolson avatar harounchebbi avatar hoanhan101 avatar izerobit avatar joker452 avatar kaiix avatar klmitchell2 avatar lonre avatar mantasmiksys avatar mimol91 avatar mohitmunjal avatar nomyfan avatar olegstotsky avatar safakozdek avatar sasalatart avatar thammachart avatar thomas-tacquet avatar vladcostea avatar weak-head avatar xybydy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ultimate-go's Issues

Alignment and padding: comment

Current comment:
// Rule 1:
// Depending on the size a particular value, Go determines the alignment we need. Every 2 bytes
// value must follow a 2 bytes boundary.

Corrected comment:
// Rule 1:
// Depending on the size a particular value, Go determines the alignment we need. Every 2 bytes
// value must fall on a 2 bytes boundary.

I am not sure if it's a typo, but here changing follow to fall changes the meaning of the sentence.

Misunderstanding in data structure alignment

// Rule 1:
// Depending on the size a particular value, Go determines the alignment we need. Every 2 bytes
// value must follow a 2 bytes boundary. Since the bool value is only 1 byte and start at
// address 0, then the next int16 must start on address 2. The byte at address that get skipped
// over becomes a 1 byte padding. Similarly, if it is a 4 bytes value then we will have a 3
// bytes padding value.

The first rule's statements are really hard to comprehend if it's your first time dealing with data structure alignments. Please, correct me if I'm wrong.

Every 2 bytes value must follow a 2 bytes boundary.

It is really hard sentence to start this explanation, because it does not imply what to do with other cases, e.g. if you put 1 byte value, it must be followed by 1 byte boundary, etc. The reader may not conclude that this implies even further for 2, 4, 8 byte values (I'm not sure for Go case, but this statement may depend on specific architecture).

Similarly, if it is a 4 bytes value then we will have a 3 bytes padding value.

Here, you don't point out that you are referring on the same example with setting 1 byte value on the beginning of the 8 byte block. I was thinking that you just appended value of pi to complete explaining alignment in that specific struct

I don't say that something here is wrong, but it's hard to understand. Maybe it should be revisited or put some references like this to be easier to understand.

Thank you

This is not an issue, just want to say thanks. Thank you for compiling this information. I will have this repo in my favorites and share it with anyone asking something about go. Thank you so very much.

Maybe some error in the pdf

What an amazing tutorial!! Thanks a lot.

At page 28 of the book about slice, there is a phrase:

What is I do data:= string{}? Is it the same?

I think it should be
data := []string{}
ζˆͺ屏2020-09-19 δΈ‹εˆ3 38 24

Any plan to Chinese version?

This is an awesome repo as well as guide for people who want to learn go. Anyone is translating to Chinese version? I am willing to do so.

when TestParallelize added t.Parallel(), the output is not expected

https://github.com/hoanhan101/ultimate-go/blob/master/go/testing/sub_test.go
test method: TestParallelize

before added output:
=== RUN TestParallelize
11_test.go:82: Given the need to test downloading different content.
--- PASS: TestParallelize (1.04s)
=== RUN TestParallelize/statusok
11_test.go:90: Test: 0 When checking "https://www.baidu.com" for status code 200
11_test.go:96: βœ“ Should be able to make the Get call.
11_test.go:101: βœ“ Should receive a 200 status code.

--- PASS: TestParallelize/statusok (0.28s)
=== RUN TestParallelize/statusnotfound
11_test.go:90: Test: 1 When checking "http://rss.cnn.com/rss/cnn_topstorie.rss" for status code 404
11_test.go:96: βœ“ Should be able to make the Get call.
11_test.go:101: βœ“ Should receive a 404 status code.
--- PASS: TestParallelize/statusnotfound (0.75s)
PASS

after added t.Parallel()
=== RUN TestParallelize
11_test.go:82: Given the need to test downloading different content.
--- PASS: TestParallelize (0.00s)
=== RUN TestParallelize/statusok
=== PAUSE TestParallelize/statusok
=== CONT TestParallelize/statusok
11_test.go:90: Test: 1 When checking "http://rss.cnn.com/rss/cnn_topstorie.rss" for status code 404
11_test.go:96: βœ“ Should be able to make the Get call.
11_test.go:101: βœ“ Should receive a 404 status code.

--- PASS: TestParallelize/statusok (1.00s)
=== RUN TestParallelize/statusnotfound
=== PAUSE TestParallelize/statusnotfound
=== CONT TestParallelize/statusnotfound
11_test.go:90: Test: 1 When checking "http://rss.cnn.com/rss/cnn_topstorie.rss" for status code 404
11_test.go:96: βœ“ Should be able to make the Get call.
11_test.go:101: βœ“ Should receive a 404 status code.
--- PASS: TestParallelize/statusnotfound (0.71s)
PASS

the bold text is the difference

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.