utils

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gopath

func Gopath() string

Gopath returns GOPATH

func ProjectRootPath

func ProjectRootPath() string

ProjectRootPath プロジェクトルートパス

func Sformat

func Sformat(buf []byte) []byte

func WriteFileWithTemplate

func WriteFileWithTemplate(config *TemplateConfig) bool

WriteFileWithTemplate 指定の設定に従いファイル出力

Types

type TemplateConfig

type TemplateConfig struct {
	OutputPath         string
	Template           string
	Parameter          interface{}
	PreventOverwriting bool
}

TemplateConfig ソース生成を行うためのテンプレート設定

Jump to

Keyboard shortcuts

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