common

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package common contains commonly used helper functions used within grafik project.

Package common contains commonly used helper functions used within grafik project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsComplex

func IsComplex(astType *ast.Type) bool

IsComplex determines if GraphQL type is not 'primitive'.

func IsList

func IsList(astType *ast.Type) bool

IsList determines if ast.Type is a list (single/multi dimensional).

func SentenceCase

func SentenceCase(s string) string

SentenceCase returns a new string with first character lowercased. "MyExample" -> "myExample". "iPhone" -> "iPhone". "1Note" -> "1Note".

func SnakeCaseToCamelCase

func SnakeCaseToCamelCase(s string) string

SnakeCaseToCamelCase converts snake_case to CamelCase. "my_example" -> "MyExample". "i_phone" -> "iPhone". "1_Note" -> "1Note".

Types

This section is empty.

Jump to

Keyboard shortcuts

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