/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/kbfs/libfs/json.go
19 строк
430 B
chrisnojima-zoom
Version 670 - clean2 (#29122)
08 июн 2026, 19:31
Не верифицирован
08 июн 2026, 19:31
1943197
Код
Авторство
О чём код?
// Copyright 2016 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. package libfs import ( "encoding/json" ) // PrettyJSON marshals a value to human-readable JSON. func PrettyJSON(value any) ([]byte, error) { data, err := json.MarshalIndent(value, "", " ") if err != nil { return nil, err } data = append(data, '\n') return data, nil }