From 54ad8a16d9dd15e03a248d47828e4cc1ad3254da Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 4 Nov 2016 11:45:38 +0000 Subject: [PATCH] Add codec code generation --- db/gen.go | 19 +++++++++++++++++++ sql/gen.go | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 db/gen.go create mode 100644 sql/gen.go diff --git a/db/gen.go b/db/gen.go new file mode 100644 index 00000000..ef483acf --- /dev/null +++ b/db/gen.go @@ -0,0 +1,19 @@ +// Copyright © 2016 Abcum Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package db + +//+build generate + +//go:generate codecgen -o db.gen.go db.go diff --git a/sql/gen.go b/sql/gen.go new file mode 100644 index 00000000..48f3cb26 --- /dev/null +++ b/sql/gen.go @@ -0,0 +1,19 @@ +// Copyright © 2016 Abcum Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package sql + +//+build generate + +//go:generate codecgen -o ast.gen.go ast.go