[−][src]Function genco::prelude::go::array
pub fn array<I>(inner: I) -> Array where
I: Into<TypeBox>,
Setup an array.
Examples
use genco::prelude::*; let import = go::array(go::imported("foo", "Debug")); let toks = quote!(#import); assert_eq!( vec![ "package foo", "", "import \"foo\"", "", "[]foo.Debug", ], toks.to_file_vec_with( go::Config::default().with_package("foo"), FormatterConfig::from_lang::<Go>() ) .unwrap() );