Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Google Google `yaml:"google"`
	// https://github.com/gzuidhof/tygo
	Typescript Source `yaml:"typescript"`
	// https://github.com/gzuidhof/tygo
	Tagmanager Source `yaml:"tagmanager"`
}

type Container

type Container struct {
	ContainerID   string `yaml:"container_id"`
	WorkspaceID   string `yaml:"workspace_id"`
	MeasurementID string `yaml:"measurement_id"`
}

type GA4

type GA4 struct {
	MeasurementID string `yaml:"measurement_id"`
}

type GTM

type GTM struct {
	AccountID string    `yaml:"account_id"`
	Web       Container `yaml:"web"`
	Server    Container `yaml:"server"`
}

type Google

type Google struct {
	GA4             GA4    `yaml:"ga4"`
	GTM             GTM    `yaml:"gtm"`
	CredentialsFile string `yaml:"credentials_file"`
	CredentialsJSON string `yaml:"credentials_json"`
}

type Source added in v0.1.2

type Source struct {
	Packages     []*tygo.PackageConfig `yaml:"packages"`
	TypeMappings map[string]string     `yaml:"type_mappings"`
}

func (Source) PackageConfig added in v0.1.2

func (e Source) PackageConfig(path string) *tygo.PackageConfig

func (Source) PackageNames added in v0.1.2

func (e Source) PackageNames() []string

Jump to

Keyboard shortcuts

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