Skip to content

Commit

Permalink
[ref] - adjust internal package names
Browse files Browse the repository at this point in the history
  • Loading branch information
ShimiT committed Feb 24, 2019
1 parent 1992642 commit 8cd3d77
Show file tree
Hide file tree
Showing 79 changed files with 52 additions and 52 deletions.
2 changes: 1 addition & 1 deletion cmd/assembly.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/spf13/cobra"

"github.com/SAP/cloud-mta-build-tool/internal/artifacts"
"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta-build-tool/internal/logs"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/gen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta-build-tool/internal/platform"
"path/filepath"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/onsi/gomega/types"

"github.com/SAP/cloud-mta-build-tool/internal/commands"
"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta-build-tool/internal/logs"
)

Expand Down
28 changes: 14 additions & 14 deletions generator.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package main

//go:generate go run ./internal/build-tools/embed.go -source=./configs/platform_cfg.yaml -target=./internal/platform/platform_cfg.go -name=PlatformConfig -package=platform
//go:generate go run ./internal/build-tools/embed.go -source=./configs/module_type_cfg.yaml -target=./internal/commands/module_type_cfg.go -name=ModuleTypeConfig -package=commands
//go:generate go run ./internal/build-tools/embed.go -source=./configs/content_type_cfg.yaml -target=./internal/contenttype/content_type_cfg.go -name=ContentTypeConfig -package=contenttype
//go:generate go run ./internal/build-tools/embed.go -source=./internal/tpl/manifest.txt -target=./internal/tpl/manifest.go -name=Manifest -package=tpl
//go:generate go run ./internal/build-tools/embed.go -source=./configs/builder_type_cfg.yaml -target=./internal/commands/builder_type_cfg.go -name=BuilderTypeConfig -package=commands
//go:generate go run ./internal/build-tools/embed.go -source=./internal/tpl/base_post_default.txt -target=./internal/tpl/base_post_default.go -name=basePostDefault -package=tpl
//go:generate go run ./internal/build-tools/embed.go -source=./internal/tpl/base_post_verbose.txt -target=./internal/tpl/base_post_verbose.go -name=basePostVerbose -package=tpl
//go:generate go run ./internal/build-tools/embed.go -source=./internal/tpl/base_pre_default.txt -target=./internal/tpl/base_pre_default.go -name=basePreDefault -package=tpl
//go:generate go run ./internal/build-tools/embed.go -source=./internal/tpl/base_pre_verbose.txt -target=./internal/tpl/base_pre_verbose.go -name=basePreVerbose -package=tpl
//go:generate go run ./internal/build-tools/embed.go -source=./internal/tpl/make_default.txt -target=./internal/tpl/make_default.go -name=makeDefault -package=tpl
//go:generate go run ./internal/build-tools/embed.go -source=./internal/tpl/make_deployment.txt -target=./internal/tpl/make_deployment.go -name=makeDeployment -package=tpl
//go:generate go run ./internal/build-tools/embed.go -source=./internal/tpl/make_verbose.txt -target=./internal/tpl/make_verbose.go -name=makeVerbose -package=tpl
//go:generate go run ./internal/build-tools/embed.go -source=./internal/tpl/make_verbose_dep.txt -target=./internal/tpl/make_verbose_dep.go -name=makeVerboseDep -package=tpl
//go:generate go run ./internal/build-tools/embed.go -source=./configs/version.yaml -target=./internal/version/version_cfg.go -name=VersionConfig -package=version
//go:generate go run ./internal/buildtools/embed.go -source=./configs/platform_cfg.yaml -target=./internal/platform/platform_cfg.go -name=PlatformConfig -package=platform
//go:generate go run ./internal/buildtools/embed.go -source=./configs/module_type_cfg.yaml -target=./internal/commands/module_type_cfg.go -name=ModuleTypeConfig -package=commands
//go:generate go run ./internal/buildtools/embed.go -source=./configs/content_type_cfg.yaml -target=./internal/conttype/content_type_cfg.go -name=ContentTypeConfig -package=conttype
//go:generate go run ./internal/buildtools/embed.go -source=./internal/tpl/manifest.txt -target=./internal/tpl/manifest.go -name=Manifest -package=tpl
//go:generate go run ./internal/buildtools/embed.go -source=./configs/builder_type_cfg.yaml -target=./internal/commands/builder_type_cfg.go -name=BuilderTypeConfig -package=commands
//go:generate go run ./internal/buildtools/embed.go -source=./internal/tpl/base_post_default.txt -target=./internal/tpl/base_post_default.go -name=basePostDefault -package=tpl
//go:generate go run ./internal/buildtools/embed.go -source=./internal/tpl/base_post_verbose.txt -target=./internal/tpl/base_post_verbose.go -name=basePostVerbose -package=tpl
//go:generate go run ./internal/buildtools/embed.go -source=./internal/tpl/base_pre_default.txt -target=./internal/tpl/base_pre_default.go -name=basePreDefault -package=tpl
//go:generate go run ./internal/buildtools/embed.go -source=./internal/tpl/base_pre_verbose.txt -target=./internal/tpl/base_pre_verbose.go -name=basePreVerbose -package=tpl
//go:generate go run ./internal/buildtools/embed.go -source=./internal/tpl/make_default.txt -target=./internal/tpl/make_default.go -name=makeDefault -package=tpl
//go:generate go run ./internal/buildtools/embed.go -source=./internal/tpl/make_deployment.txt -target=./internal/tpl/make_deployment.go -name=makeDeployment -package=tpl
//go:generate go run ./internal/buildtools/embed.go -source=./internal/tpl/make_verbose.txt -target=./internal/tpl/make_verbose.go -name=makeVerbose -package=tpl
//go:generate go run ./internal/buildtools/embed.go -source=./internal/tpl/make_verbose_dep.txt -target=./internal/tpl/make_verbose_dep.go -name=makeVerboseDep -package=tpl
//go:generate go run ./internal/buildtools/embed.go -source=./configs/version.yaml -target=./internal/version/version_cfg.go -name=VersionConfig -package=version
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/artifacts/cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/pkg/errors"

"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta-build-tool/internal/logs"
)

Expand Down
14 changes: 7 additions & 7 deletions internal/artifacts/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (

"github.com/SAP/cloud-mta/mta"

"github.com/SAP/cloud-mta-build-tool/internal/contenttype"
"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/conttype"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta-build-tool/internal/tpl"
"github.com/SAP/cloud-mta-build-tool/internal/version"
)
Expand Down Expand Up @@ -46,7 +46,7 @@ type entry struct {
func setManifestDesc(ep dir.ITargetArtifacts, targetPathGetter dir.ITargetPath, mtaStr []*mta.Module,
mtaResources []*mta.Resource, modules []string, onlyModules bool) error {

contentTypes, err := contenttype.GetContentTypes()
contentTypes, err := conttype.GetContentTypes()
if err != nil {
return errors.Wrap(err,
"failed to generate the manifest file when getting the content types from the configuration")
Expand Down Expand Up @@ -106,7 +106,7 @@ func addModuleEntry(targetPathGetter dir.ITargetPath, entries []entry, module *m
}

func getResourcesEntries(targetPathGetter dir.ITargetPath, resources []*mta.Resource,
contentTypes *contenttype.ContentTypes) ([]entry, error) {
contentTypes *conttype.ContentTypes) ([]entry, error) {
var entries []entry
for _, resource := range resources {
if resource.Name == "" || resource.Parameters["path"] == nil {
Expand All @@ -129,7 +129,7 @@ func getResourcesEntries(targetPathGetter dir.ITargetPath, resources []*mta.Reso
}

func buildEntries(targetPathGetter dir.ITargetPath, module *mta.Module,
requiredDependencies []mta.Requires, contentTypes *contenttype.ContentTypes) ([]entry, error) {
requiredDependencies []mta.Requires, contentTypes *conttype.ContentTypes) ([]entry, error) {
result := make([]entry, 0)
for _, requiredDependency := range requiredDependencies {
contentType, err :=
Expand All @@ -148,7 +148,7 @@ func buildEntries(targetPathGetter dir.ITargetPath, module *mta.Module,
return result, nil
}

func getContentType(targetPathGetter dir.ITargetPath, path string, contentTypes *contenttype.ContentTypes) (string, error) {
func getContentType(targetPathGetter dir.ITargetPath, path string, contentTypes *conttype.ContentTypes) (string, error) {
fullPath := filepath.Join(targetPathGetter.GetTargetTmpDir(), path)
info, err := os.Stat(fullPath)
if err != nil {
Expand All @@ -160,7 +160,7 @@ func getContentType(targetPathGetter dir.ITargetPath, path string, contentTypes
}

extension := filepath.Ext(fullPath)
return contenttype.GetContentType(contentTypes, extension)
return conttype.GetContentType(contentTypes, extension)
}

func getRequiredDependencies(module *mta.Module) []mta.Requires {
Expand Down
6 changes: 3 additions & 3 deletions internal/artifacts/manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
. "github.com/onsi/gomega"
"github.com/pkg/errors"

"github.com/SAP/cloud-mta-build-tool/internal/contenttype"
"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/conttype"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
)

var _ = Describe("manifest", func() {
Expand Down Expand Up @@ -161,7 +161,7 @@ var _ = Describe("manifest", func() {
},
},
}
entries, err := buildEntries(loc, &mod, requires, &contenttype.ContentTypes{})
entries, err := buildEntries(loc, &mod, requires, &conttype.ContentTypes{})
Ω(len(entries)).Should(Equal(1))
Ω(err).Should(Succeed())
e := entries[0]
Expand Down
2 changes: 1 addition & 1 deletion internal/artifacts/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/SAP/cloud-mta/mta"

"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta-build-tool/internal/logs"
"github.com/SAP/cloud-mta-build-tool/internal/platform"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/artifacts/meta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/pkg/errors"
"gopkg.in/yaml.v2"

"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta-build-tool/internal/platform"
"github.com/SAP/cloud-mta-build-tool/internal/version"
"github.com/SAP/cloud-mta/mta"
Expand Down
2 changes: 1 addition & 1 deletion internal/artifacts/module_arch.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/SAP/cloud-mta-build-tool/internal/buildops"
"github.com/SAP/cloud-mta-build-tool/internal/commands"
"github.com/SAP/cloud-mta-build-tool/internal/exec"
"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta-build-tool/internal/logs"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/artifacts/module_arch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

"github.com/SAP/cloud-mta-build-tool/internal/buildops"
"github.com/SAP/cloud-mta-build-tool/internal/commands"
"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
)

var _ = Describe("ModuleArch", func() {
Expand Down
2 changes: 1 addition & 1 deletion internal/artifacts/mtad.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/SAP/cloud-mta/mta"

"github.com/SAP/cloud-mta-build-tool/internal/buildops"
"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta-build-tool/internal/logs"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/artifacts/mtad_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"gopkg.in/yaml.v2"

"github.com/SAP/cloud-mta-build-tool/internal/buildops"
"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta-build-tool/internal/platform"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/artifacts/mtar.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/pkg/errors"

"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta-build-tool/internal/logs"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/artifacts/mtar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"

"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
)

var _ = Describe("Mtar", func() {
Expand Down
2 changes: 1 addition & 1 deletion internal/artifacts/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/pkg/errors"

"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta-build-tool/internal/logs"
"github.com/SAP/cloud-mta/validations"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/buildops/build_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/pkg/errors"

"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta/mta"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/buildops/build_params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"

"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta/mta"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/buildops/modules_deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/deckarep/golang-set"
"github.com/pkg/errors"

"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta/mta"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/buildops/modules_deps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
. "github.com/onsi/gomega"
"github.com/pkg/errors"

"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta/mta"
)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/pkg/errors"

"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
)

type configInfo struct {
Expand All @@ -19,7 +19,7 @@ type configInfo struct {
Data string
}

var templatePath = "./internal/build-tools"
var templatePath = "./internal/buildtools"

// This code is executed during the go:generate command
// Reading the config files and generate byte array
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/commands/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/SAP/cloud-mta/mta"

"github.com/SAP/cloud-mta-build-tool/internal/buildops"
"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
)

// CommandList - list of command to execute
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
. "github.com/onsi/gomega"
"gopkg.in/yaml.v2"

"github.com/SAP/cloud-mta-build-tool/internal/fs"
"github.com/SAP/cloud-mta-build-tool/internal/archive"
"github.com/SAP/cloud-mta/mta"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package contenttype
package conttype

// ContentTypeConfig - do not edit
var ContentTypeConfig = []byte{0x23, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x20, 0x74, 0x79, 0x70, 0x65, 0x73, 0x20, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0xd, 0xa, 0x23, 0x20, 0x54, 0x68, 0x69, 0x73, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x20, 0x6d, 0x61, 0x70, 0x73, 0x20, 0x62, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6e, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x20, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x20, 0x74, 0x79, 0x70, 0x65, 0xd, 0xa, 0x23, 0x20, 0x69, 0x74, 0x20, 0x69, 0x73, 0x20, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x74, 0x6f, 0x6f, 0x6c, 0x20, 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x20, 0x61, 0x73, 0x20, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x20, 0x65, 0x61, 0x73, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x75, 0x73, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x71, 0x75, 0x69, 0x63, 0x6b, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0xd, 0xa, 0x23, 0x20, 0x48, 0x6f, 0x77, 0x65, 0x76, 0x65, 0x72, 0x2c, 0x20, 0x54, 0x6f, 0x20, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x63, 0x6c, 0x65, 0x61, 0x72, 0x20, 0x73, 0x65, 0x70, 0x61, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x62, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x20, 0x74, 0x6f, 0x6f, 0x6c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x20, 0x74, 0x79, 0x70, 0x65, 0x73, 0xd, 0xa, 0x23, 0x20, 0x74, 0x68, 0x65, 0x20, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x20, 0x74, 0x6f, 0x6f, 0x6c, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x20, 0x61, 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x20, 0x76, 0x69, 0x61, 0x20, 0x43, 0x4c, 0x49, 0x20, 0x66, 0x6c, 0x61, 0x67, 0x73, 0xd, 0xa, 0x23, 0x20, 0x70, 0x61, 0x74, 0x68, 0x20, 0x74, 0x6f, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x20, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x20, 0x77, 0x69, 0x6e, 0x73, 0x20, 0x6f, 0x76, 0x65, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x20, 0x28, 0x69, 0x2e, 0x65, 0x2e, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x70, 0x6f, 0x29, 0xd, 0xa, 0xd, 0xa, 0x23, 0x20, 0x4e, 0x6f, 0x74, 0x65, 0x3a, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x75, 0x74, 0x75, 0x72, 0x65, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x74, 0x68, 0x65, 0x20, 0x74, 0x6f, 0x6f, 0x6c, 0xd, 0xa, 0xd, 0xa, 0x23, 0x20, 0x75, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x64, 0x64, 0x20, 0x6e, 0x65, 0x77, 0x20, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x2c, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x20, 0x60, 0x67, 0x6f, 0x3a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x60, 0xd, 0xa, 0x23, 0x20, 0x54, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x62, 0x65, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x6f, 0x6f, 0x74, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x20, 0x74, 0x6f, 0x20, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x20, 0x28, 0x73, 0x65, 0x65, 0x20, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x67, 0x6f, 0x20, 0x66, 0x69, 0x6c, 0x65, 0x29, 0xd, 0xa, 0xd, 0xa, 0x23, 0x20, 0x54, 0x79, 0x70, 0x65, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x72, 0x79, 0x20, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0xd, 0xa, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3a, 0xd, 0xa, 0x2d, 0x20, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0xd, 0xa, 0x20, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0xd, 0xa, 0xd, 0xa, 0x2d, 0x20, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x2e, 0x77, 0x61, 0x72, 0xd, 0xa, 0x20, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x7a, 0x69, 0x70, 0x22, 0xd, 0xa, 0xd, 0xa, 0x2d, 0x20, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x2e, 0x6a, 0x61, 0x72, 0xd, 0xa, 0x20, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x7a, 0x69, 0x70, 0x22, 0xd, 0xa, 0xd, 0xa, 0x2d, 0x20, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x2e, 0x7a, 0x69, 0x70, 0xd, 0xa, 0x20, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x7a, 0x69, 0x70, 0x22, 0xd, 0xa, 0xd, 0xa, 0x2d, 0x20, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0x20, 0x2e, 0x79, 0x61, 0x6d, 0x6c, 0xd, 0xa, 0x20, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x22, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x22, 0xd, 0xa}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package contenttype
package conttype

import (
"testing"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package contenttype
package conttype

// ContentTypes - data structure for content types configuration
type ContentTypes struct {
Expand Down
Loading

0 comments on commit 8cd3d77

Please sign in to comment.