Documentation
¶
Index ¶
- Constants
- Variables
- func Bytes2String(b []byte) string
- func ConvertHtml2Md(filePath, html string) error
- func ConvertString2slice(in string, sep string) []string
- func String2Bytes(s string) []byte
- func ValidateDataSource(ds []string) (string, bool)
- func ValidateResource(rs []string) (string, bool)
- func WriteToFile(filePath string, data interface{}) error
- type ByPair
- type OrderedMap
- func (o *OrderedMap) Delete(key string)
- func (o *OrderedMap) Get(key string) (interface{}, bool)
- func (o *OrderedMap) Keys() []string
- func (o OrderedMap) MarshalJSON() ([]byte, error)
- func (o *OrderedMap) Set(key string, value interface{})
- func (o *OrderedMap) SetEscapeHTML(on bool)
- func (o *OrderedMap) Sort(lessFunc func(a *Pair, b *Pair) bool)
- func (o *OrderedMap) SortKeys(sortFunc func(keys []string))
- func (o *OrderedMap) UnmarshalJSON(b []byte) error
- type Pair
Constants ¶
View Source
const (
//FILE_LOC_PREFIX = "~/tmp/terrafmtter"
FILE_LOC_PREFIX = "/tmp/terrafmtter/"
)
Variables ¶
View Source
var (
Logger zerolog.Logger
)
Functions ¶
func ConvertHtml2Md ¶
func ConvertString2slice ¶
ConvertString2slice convert string to string slice according to sep.
func ValidateDataSource ¶
func ValidateResource ¶
func WriteToFile ¶
WriteToFile write data to filePath.
Types ¶
type OrderedMap ¶
type OrderedMap struct {
// contains filtered or unexported fields
}
func NewMap ¶
func NewMap() *OrderedMap
func (*OrderedMap) Delete ¶
func (o *OrderedMap) Delete(key string)
func (*OrderedMap) Get ¶
func (o *OrderedMap) Get(key string) (interface{}, bool)
func (*OrderedMap) Keys ¶
func (o *OrderedMap) Keys() []string
func (OrderedMap) MarshalJSON ¶
func (o OrderedMap) MarshalJSON() ([]byte, error)
func (*OrderedMap) Set ¶
func (o *OrderedMap) Set(key string, value interface{})
func (*OrderedMap) SetEscapeHTML ¶
func (o *OrderedMap) SetEscapeHTML(on bool)
func (*OrderedMap) Sort ¶
func (o *OrderedMap) Sort(lessFunc func(a *Pair, b *Pair) bool)
Sort Sort the map using your sort func
func (*OrderedMap) SortKeys ¶
func (o *OrderedMap) SortKeys(sortFunc func(keys []string))
SortKeys Sort the map keys using your sort func
func (*OrderedMap) UnmarshalJSON ¶
func (o *OrderedMap) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.