[ https://issues.apache.org/jira/browse/BEAM-3612?focusedWorklogId=164596&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-164596 ]
ASF GitHub Bot logged work on BEAM-3612: ---------------------------------------- Author: ASF GitHub Bot Created on: 10/Nov/18 01:06 Start Date: 10/Nov/18 01:06 Worklog Time Spent: 10m Work Description: lostluck commented on a change in pull request #7000: [BEAM-3612] Add a shim generator tool URL: https://github.com/apache/beam/pull/7000#discussion_r232433718 ########## File path: sdks/go/cmd/starcgen/starcgen.go ########## @@ -0,0 +1,100 @@ +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You 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. + +// starcgen is a tool to generate specialized type assertion shims to be +// used in Apache Beam Go SDK pipelines instead of the default reflection shim. +// This is done through static analysis of go sources for the package in question. +package main + +import ( + "flag" + "fmt" + "go/ast" + "go/importer" + "go/parser" + "go/token" + "io" + "log" + "os" + "strings" + + "github.com/apache/beam/sdks/go/pkg/beam/util/starcgenx" +) + +var ( + inputs = flag.String("inputs", "", "comma separated list of file with types to create") + output = flag.String("output", "", "output file with types to create") + ids = flag.String("identifiers", "", "comma separated list of package local identifiers for which to generate code") +) + +// Generate takes in the ASTs of files and Review comment: Done. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 164596) Time Spent: 4h 50m (was: 4h 40m) > Make it easy to generate type-specialized Go SDK reflectx.Funcs > --------------------------------------------------------------- > > Key: BEAM-3612 > URL: https://issues.apache.org/jira/browse/BEAM-3612 > Project: Beam > Issue Type: Improvement > Components: sdk-go > Reporter: Henning Rohde > Assignee: Robert Burke > Priority: Major > Time Spent: 4h 50m > Remaining Estimate: 0h > -- This message was sent by Atlassian JIRA (v7.6.3#76005)