github.com/zhongdalu/gf@v1.0.0/g/encoding/gparser/gparser_api_config.go (about) 1 // Copyright 2017 gf Author(https://github.com/zhongdalu/gf). All Rights Reserved. 2 // 3 // This Source Code Form is subject to the terms of the MIT License. 4 // If a copy of the MIT was not distributed with this file, 5 // You can obtain one at https://gitee.com/johng/gp. 6 7 package gparser 8 9 // SetSplitChar sets the separator char for hierarchical data access. 10 func (p *Parser) SetSplitChar(char byte) { 11 p.json.SetSplitChar(char) 12 } 13 14 // SetViolenceCheck enables/disables violence check for hierarchical data access. 15 func (p *Parser) SetViolenceCheck(check bool) { 16 p.json.SetViolenceCheck(check) 17 }