github.com/sixpointsix/raftshardkv@v0.0.0-20240507130406-765b65f17bb3/pkg/mod/golang.org/x/text@v0.4.0/message/catalog/gopre19.go (about) 1 // Copyright 2017 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build !go1.9 6 // +build !go1.9 7 8 package catalog 9 10 import "golang.org/x/text/internal/catmsg" 11 12 // A Message holds a collection of translations for the same phrase that may 13 // vary based on the values of substitution arguments. 14 type Message interface { 15 catmsg.Message 16 } 17 18 func firstInSequence(m []Message) catmsg.Message { 19 a := []catmsg.Message{} 20 for _, m := range m { 21 a = append(a, m) 22 } 23 return catmsg.FirstOf(a) 24 }