{"id":17967217,"url":"https://github.com/viiku/go-learning","last_synced_at":"2025-04-03T21:28:07.072Z","repository":{"id":259245107,"uuid":"877403974","full_name":"viiku/go-learning","owner":"viiku","description":"A series of go programming. ","archived":false,"fork":false,"pushed_at":"2025-03-13T16:03:02.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T17:32:45.111Z","etag":null,"topics":["go","learning-by-doing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/viiku.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-10-23T15:34:56.000Z","updated_at":"2025-03-13T16:03:05.000Z","dependencies_parsed_at":"2024-12-06T19:44:43.949Z","dependency_job_id":null,"html_url":"https://github.com/viiku/go-learning","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"0ad157c8629804bae396ae32ceab7152efd09412"},"previous_names":["viiku/go-learning"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viiku%2Fgo-learning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viiku%2Fgo-learning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viiku%2Fgo-learning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viiku%2Fgo-learning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viiku","download_url":"https://codeload.github.com/viiku/go-learning/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247081329,"owners_count":20880408,"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":["go","learning-by-doing"],"created_at":"2024-10-29T14:04:40.779Z","updated_at":"2025-04-03T21:28:07.053Z","avatar_url":"https://github.com/viiku.png","language":"Go","readme":"# go-learning\nA series of go programming. \n\n#####\n1. Keep in mind that := is a declaration, whereas = is an assignment.\n2. In Go, := is used for declaring and initializing variables within a function but not for constants.\n\n\n####\n1. Signed Integers\nSigned integers can represent both positive and negative numbers.\n\nThey use one bit (the most significant bit) to indicate the sign: 0 for positive and 1 for negative.\n\n    In Go, signed integer types include:\n    \n    int8: Range from -128 to 127\n    int16: Range from -32,768 to 32,767\n    int32: Range from -2,147,483,648 to 2,147,483,647\n    int64: Range from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807\n    int: Platform-dependent (either int32 or int64 depending on the system architecture)\n\n2. Unsigned Integers\nUnsigned integers can represent only non-negative values (0 and positive numbers).\n\nAll bits are used to store the number, allowing a larger positive range compared to signed integers of the same bit width.\nIn Go, unsigned integer types include:\n    uint8 (or byte): Range from 0 to 255\n    uint16: Range from 0 to 65,535\n    uint32: Range from 0 to 4,294,967,295\n    uint64: Range from 0 to 18,446,744,073,709,551,615\n    uint: Platform-dependent (either uint32 or uint64 depending on the system architecture)\n\n#### [] byte\nStrings can be converted to byte slices and back again:\n\n    s := \"abc\"\n    b := []byte(s)\n    s2 := string(b)\n\nConceptually, the []byte(s) conversion allocates a new byte array holding a copy of the bytes of s, and yields a slice that references the entirety of that array.\n\nAn optimizing compiler may be able to avoid the allocation and copying in some cases, but in general copying is required to ensure that the bytes of s remain unchanged even if those of b are subsequently modified.\n\nThe conversion from byte slice back to string with string(b) also makes a copy, to ensure immutability of the resulting string s2.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviiku%2Fgo-learning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviiku%2Fgo-learning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviiku%2Fgo-learning/lists"}