goki.dev/laser@v0.1.34/interfaces.go (about) 1 // Copyright (c) 2023, The Goki 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 package laser 6 7 // SetAnyer represents a type that can be set from any value. 8 // It is checked in [SetRobust]. 9 type SetAnyer interface { 10 SetAny(v any) error 11 } 12 13 // SetStringer represents a type that can be set from a string 14 // value. It is checked in [SetRobust]. 15 type SetStringer interface { 16 SetString(s string) error 17 }