@@ -11,7 +11,7 @@ import (
1111// MakeSliceBuffer returns the slice type associated with c and t and with the given element count.
1212// If the buffer is an slice which type matches with the expected by the acr then it will
1313// be used as backing slice.
14- func MakeSliceBuffer (c gltf.ComponentType , t gltf.AccessorType , count uint32 , buffer interface {}) interface {} {
14+ func MakeSliceBuffer (c gltf.ComponentType , t gltf.AccessorType , count uint32 , buffer any ) any {
1515 if buffer == nil {
1616 return MakeSlice (c , t , count )
1717 }
@@ -32,7 +32,7 @@ func MakeSliceBuffer(c gltf.ComponentType, t gltf.AccessorType, count uint32, bu
3232// MakeSlice returns the slice type associated with c and t and with the given element count.
3333// For example, if c is gltf.ComponentFloat and t is gltf.AccessorVec3
3434// then MakeSlice(c, t, 5) is equivalent to make([][3]float32, 5).
35- func MakeSlice (c gltf.ComponentType , t gltf.AccessorType , count uint32 ) interface {} {
35+ func MakeSlice (c gltf.ComponentType , t gltf.AccessorType , count uint32 ) any {
3636 var tp reflect.Type
3737 switch c {
3838 case gltf .ComponentUbyte :
@@ -68,7 +68,7 @@ func MakeSlice(c gltf.ComponentType, t gltf.AccessorType, count uint32) interfac
6868
6969// Type returns the associated glTF type data.
7070// It panics if data is not an slice.
71- func Type (data interface {} ) (c gltf.ComponentType , t gltf.AccessorType , count uint32 ) {
71+ func Type (data any ) (c gltf.ComponentType , t gltf.AccessorType , count uint32 ) {
7272 v := reflect .ValueOf (data )
7373 if v .Kind () != reflect .Slice {
7474 panic (fmt .Sprintf ("go3mf: binary.Type expecting a slice but got %s" , v .Kind ()))
0 commit comments