---
title: Position
summary: Position is a position within an image.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/struct.Position/
---

**Kind:** Struct  
**Module:** [imageopto](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/)  
**Package:** compute-sdk-go v1.11.0  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L179

```go
type Position struct {
	X PointOrOffset
	Y PointOrOffset
}
```

Position is a position within an image.

Valid values:

	x{x},y{y}
	offset-x{offset-x},offset-y{offset-y}
	x{x},offset-y{offset-y}
	offset-x{offset-x},y{y}

## Fields

### X

**Type:** `PointOrOffset`

### Y

**Type:** `PointOrOffset`

## Methods

### String

**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L184

```go
func (p *Position) String() string
```

**Returns**

`string`
