Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for data_string (0.11 sec)

  1. docs/debugging/xl-meta/main.go

    			} else {
    				s += ", \"bitrot_valid\": false"
    			}
    			if value {
    				if utf8.Valid(data) {
    					// Encode as JSON string.
    					b, err := json.Marshal(string(data))
    					if err == nil {
    						s += `, "data_string": ` + string(b)
    					}
    				}
    				// Base64 encode.
    				s += `, "data_base64": "` + base64.StdEncoding.EncodeToString(data) + `"`
    			}
    			s += "}"
    		}
    		res = append(res, []byte(s)...)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
Back to top