utils

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonLangs added in v0.13.0

func CommonLangs() []string

func CreateEnv

func CreateEnv(envPath string) error

func FillLicense added in v0.5.0

func FillLicense(c *github.Client, ctx context.Context, l string) (string, error)

Replace [year] and [fullname] in the License with actual values (username from github and current year)

func GetEnvLoc added in v0.3.0

func GetEnvLoc() (string, error)

func ReadEnv

func ReadEnv(envPath string) ([]string, error)

func ReadInput

func ReadInput(prompt string) (string, error)

func TimeInDays added in v0.4.0

func TimeInDays(t time.Duration) string

func Truncate added in v0.8.0

func Truncate(text string, maxLen int) string

func UpdateToken added in v0.12.0

func UpdateToken(envPath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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