utils

package
v0.0.0-...-c4913dc Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// licenses data
	LicenseTxt  = "license.txt"
	LicenseDot  = "license."
	LicenseMd   = "license.md"
	License     = "license"
	Bsdl        = "bsdl"
	Copying     = "copying"
	COPYINGv3   = "COPYINGv3"
	CopyingDot  = "copying."
	CopyingDash = "copying-"
	Legal       = "legal"
	Readme      = "readme"
	Copyright   = "copyright"
	Ftl         = "ftl.txt"
	GPLv2       = "gplv2.TXT"

	MITtxt          = "mit.txt"
	LisenseRst      = "lisense.rst"
	LisenceHtml     = "lisence.html"
	LicenseHtml     = "license.html"
	Licenses2       = "LICENSE-2.0.txt"
	LICENSE_UNKNOWN = "Unknown"
	Licenses        = "/licenses/"
	EMPTY_STRING    = ""
)

Variables

This section is empty.

Functions

func GetLicensesFiles

func GetLicensesFiles() []string

func GetLicensesFilesPrefix

func GetLicensesFilesPrefix() []string

func LicenseToSha256

func LicenseToSha256(value string) string

func ReadPomComments

func ReadPomComments(pomData string) string

func RemoveDuplicatedObjectIds

func RemoveDuplicatedObjectIds(ids []string) []string

Types

type Set

type Set struct {
	// contains filtered or unexported fields
}

func NewSet

func NewSet() *Set

func NewSetFromStrings

func NewSetFromStrings(values []string) *Set

func NewSetWithData

func NewSetWithData(values []SetInterface) *Set

func (Set) Add

func (set Set) Add(value SetInterface)

func (Set) AddString

func (set Set) AddString(value string)

func (Set) AddStringValues

func (set Set) AddStringValues(values []string)

func (Set) AddValues

func (set Set) AddValues(values []SetInterface)

func (Set) GetValue

func (set Set) GetValue(key string) string

func (Set) Remove

func (set Set) Remove(value SetInterface)

func (Set) Size

func (set Set) Size() int

func (Set) StringValues

func (set Set) StringValues() []string

func (Set) Update

func (set Set) Update(value SetInterface)

func (Set) Values

func (set Set) Values() []SetInterface

type SetId

type SetId struct {
	ID string
}

func (SetId) ToString

func (id SetId) ToString() string

type SetInterface

type SetInterface interface {
	ToString() string
}

type SetString

type SetString string

func (SetString) ToString

func (s SetString) ToString() string

Jump to

Keyboard shortcuts

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