Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)X
Posts
0
Comments
1
Joined
1 yr. ago

  • My least favorite part of Go, by far, is the capitalization as struct member visibility thing. That and the not super great json encoding annotations.

    Here's a sample:

     golang
        
    type Change struct {
        Path             string `json:"path"`
        Category         string `json:"category"` // change, append, create, delete
        Position         int64  `json:"position"`
        Size             int64  `json:"size"`
        OriginalChecksum string `json:"original_checksum"`
        UpdatedChecksum  string `json:"updated_checksum"`
        UnixTimestamp    int64  `json:"unix_timestamp"`
        Data             []byte `json:"data"`
        MatchedRules     []Rule `json:"matched_rules"`
    }
    
      

    I would take explicit public declarators any day