utils

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(dir string, filename string) (file *os.File, err error)

func FormatGraphqlSchema

func FormatGraphqlSchema(file *os.File) error

func ReadFile

func ReadFile(path string) (*string, error)

func ToJson

func ToJson(data any) string

func ToYaml

func ToYaml(data any) string

Types

type Pair

type Pair struct {
	First  any
	Second any
}

func (Pair) IsSame

func (p Pair) IsSame(pp Pair) bool

type PairList

type PairList []*Pair

func (PairList) ForFirst

func (l PairList) ForFirst(v any) any

func (PairList) ForPair

func (l PairList) ForPair(s any) any

func (PairList) HasSamePair

func (l PairList) HasSamePair(p Pair) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL