Documentation ¶
Overview ¶
Package objconv contains code for converting formats isomorphic with JSON.
This file contains code from https://github.com/ghodss/yaml/tree/c7ce16629ff4cd059ed96ed06419dd3856fd3577 it contains convertToJSONableObject from yaml.go and all of fields.go
Copyright 2013 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChromaFormatter ¶
func ChromaFormatter() string
ChromaFormatter is a helper to detect the ideal Chroma formatter name for colorizing output.
This function is useful for implementing Color() in the Encoding interface.
func ChromaStyle ¶
func ChromaStyle() string
ChromaStyle is a helper to return the default Chroma style.
This function is useful for implementing Color() in the Encoding interface.
Types ¶
type Decoder ¶
type Decoder interface { // MarshalJSONBytes returns a JSON value per invocation. It should return // io.EOF when it reaches the end of it's stream input stream. MarshalJSONBytes() ([]byte, error) }
Decoder is able to decode a format that is isomorphic with JSON.