Skip to main content

internal/infra/pg/artifactcontent.go

internal/infra/pg · 32 lines · 2 declarations · source

Declarations

type ArtifactContent

type ArtifactContent []byte

ArtifactContent uses one wire representation: a canonical base64 JSON string. encoding/json's default []byte decoder also accepts integer arrays, which would contradict the declared contract.

source

method ArtifactContent.UnmarshalJSON

func (b *ArtifactContent) UnmarshalJSON(raw []byte) error

source