Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFileAndCleanComment ¶
ReadFileAndCleanComment - Функция чтения JSON файла и удаления из него закоментированных строк и блок (комментарии согласно правилам С/С++)
Example ¶
Простой пример использования
// file: testFile.json: //`{ // "name": "test */JSON file/", // //"comment_line": "not /see this line of //text /*comment too */",/ // /*"comment_block": "not see *this* block of //text",*/ // "end": "end/ json /file*" //}//` bytes, err := ReadFileAndCleanComment("./test_json/testFile.json") if err != nil { print("Unexpected error while Read and Clean Json file: %v", err) } fmt.Println(string(bytes))
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.