AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Location

import "github.com/aws/aws-sdk-go/service/codecommit"

type Location struct { FilePath *string `locationName:"filePath" type:"string"` FilePosition *int64 `locationName:"filePosition" type:"long"` RelativeFileVersion *string `locationName:"relativeFileVersion" type:"string" enum:"RelativeFileVersionEnum"` }

Returns information about the location of a change or comment in the comparison between two commits or a pull request.

FilePath

Type: *string

The name of the file being compared, including its extension and subdirectory, if any.

FilePosition

Type: *int64

The position of a change within a compared file, in line number format.

RelativeFileVersion

Type: *string

In a comparison of commits or a pull request, whether the change is in the 'before' or 'after' of that comparison.

Method

GoString

func (s Location) GoString() string

GoString returns the string representation

SetFilePath

func (s *Location) SetFilePath(v string) *Location

SetFilePath sets the FilePath field's value.

SetFilePosition

func (s *Location) SetFilePosition(v int64) *Location

SetFilePosition sets the FilePosition field's value.

SetRelativeFileVersion

func (s *Location) SetRelativeFileVersion(v string) *Location

SetRelativeFileVersion sets the RelativeFileVersion field's value.

String

func (s Location) String() string

String returns the string representation

On this page: