utils

package
v2.3.55 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Copyright (c) 2020 Khramtsov Aleksei (seniorGolang@gmail.com). This file (camelCase.go at 14.05.2020, 2:20) is subject to the terms and conditions defined in file 'LICENSE', which is part of this project source code.

Copyright (c) 2020 Khramtsov Aleksei (seniorGolang@gmail.com). This file (pkgpath.go at 14.05.2020, 2:21) is subject to the terms and conditions defined in file 'LICENSE', which is part of this project source code.

Copyright (c) 2020 Khramtsov Aleksei (seniorGolang@gmail.com). This file (slice.go at 14.05.2020, 2:13) is subject to the terms and conditions defined in file 'LICENSE', which is part of this project source code.

Copyright (c) 2020 Khramtsov Aleksei (seniorGolang@gmail.com). This file (variables.go at 14.05.2020, 2:13) is subject to the terms and conditions defined in file 'LICENSE', which is part of this project source code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DictByNormalVariables

func DictByNormalVariables(fields []types.Variable, normals []types.Variable) Dict

func GetDefaultGoPath

func GetDefaultGoPath() (string, error)

func GetModulePath

func GetModulePath(goModPath string) string

func GetPkgPath

func GetPkgPath(fName string, isDir bool) (string, error)

func GetPkgPathFromGOPATH

func GetPkgPathFromGOPATH(fName string, isDir bool) (string, error)

func GetPkgPathFromGoMod

func GetPkgPathFromGoMod(fName string, isDir bool, goModPath string) (string, error)

func GoModPath

func GoModPath(fName string, isDir bool) (string, error)

func SliceStringToMap

func SliceStringToMap(slice []string) (m map[string]int)

convert slice of strings to map[string]int

func ToCamel

func ToCamel(s string) string

Converts a string to CamelCase

func ToLowerCamel

func ToLowerCamel(s string) string

Converts a string to lowerCamelCase

Types

This section is empty.

Jump to

Keyboard shortcuts

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