Skip to content

Commit

Permalink
More canonical import paths and package docs
Browse files Browse the repository at this point in the history
Added more canonical import paths in an attempt to help
fix the issues on godoc.org, and also because
more documentation is aways a good thing.
  • Loading branch information
markmandel committed Mar 6, 2018
1 parent 51efcc2 commit 3300f62
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 3 deletions.
16 changes: 16 additions & 0 deletions pkg/apis/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2018 Google Inc. All Rights Reserved.
//
// 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 apis contains all the types for the Custom Resource Definitions
package apis // import "agones.dev/agones/pkg/apis"
16 changes: 16 additions & 0 deletions pkg/client/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2018 Google Inc. All Rights Reserved.
//
// 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 client contains the generated client for the Custome Resource Definitions
package client // import "agones.dev/agones/pkg/client"
16 changes: 16 additions & 0 deletions pkg/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2018 Google Inc. All Rights Reserved.
//
// 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 pkg is the main code of Agones
package pkg // import "agones.dev/agones/pkg"
2 changes: 1 addition & 1 deletion pkg/gameservers/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

// Package gameservers handles management of the
// GameServer Custom Resource Definition
package gameservers
package gameservers // import "agones.dev/agones/pkg/gameservers"
16 changes: 16 additions & 0 deletions pkg/sdk/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2018 Google Inc. All Rights Reserved.
//
// 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 sdk is the gRPC generated server and client code
package sdk // import "agones.dev/agones/pkg/sdk"
17 changes: 17 additions & 0 deletions pkg/util/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2018 Google Inc. All Rights Reserved.
//
// 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 util is for libraries that aren't specific to Agones
// but are more general utility
package util // import "agones.dev/agones/pkg/util"
6 changes: 4 additions & 2 deletions pkg/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package pkg // import "agones.dev/agones/pkg"
package pkg

var (
// Version is the global version for all binaries
// This is set at compile time by the build process
Version string = "dev"
Version = "dev"


)

0 comments on commit 3300f62

Please sign in to comment.