util

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Overview

Package util is a helper library for go2ts

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGoModPath

func GetGoModPath(in string) (string, error)

GetGoModPath - Gitリポジトリ直下から幅優先探索でgo.modを探す

func GetGoModule

func GetGoModule(goMod string) (string, error)

GetGoModule - Goのルートパッケージ名をgo.modから取得する

func GetPackageNameFromPath added in v0.0.4

func GetPackageNameFromPath(s string) string

GetPackageNameFromPath - パスの最後の要素からパッケージ名を取得

func SHA1 added in v1.0.4

func SHA1(s string) string

SHA1 generate SHA1 in hex encoding from s

func SplitPackegeStruct added in v0.0.4

func SplitPackegeStruct(s string) (string, string)

SplitPackegeStruct - package.structを分割

Types

This section is empty.

Jump to

Keyboard shortcuts

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