Module Import alias ImportFrom alias alias ImportFrom alias alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad TupleLoad Str Str ListLoad keyword Dict Str Str Assign AttributeStore NameLoad attr Dict Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword Dict Str ListLoad TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad NameLoad Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword Dict Str ListLoad TupleLoad Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword Dict Str ListLoad TupleLoad Str Str Assign NameStore Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str With Call NameLoad keyword ListLoad Str keyword ListLoad TupleLoad Str AttributeLoad NameLoad attr body If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore Str orelse Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A unittest conans.test.tools TestServer TestClient conans.model.ref ConanFileReference PackageReference N/A os conans.test.utils.context_manager CustomEnvPath N/A platform conans.test.utils.test_files scan_folder conans.test.utils.test_files uncompress_packaged_files N/A stringutil_conanfile 
from conans import ConanFile

class Stringutil(ConanFile):
    name = "stringutil"
    version = "0.1"
    exports = '*'
    def package(self):
        self.copy("*")
 N/A reverse // Package stringutil contains utility functions for working with strings.
package stringutil

// Reverse returns its argument string reversed rune-wise left to right.
func Reverse(s string) string {
    r := []rune(s)
    for i, j := 0, len(r)-1; i < len(r)/2; i, j = i+1, j-1 {
        r[i], r[j] = r[j], r[i]
    }
    return string(r)
}
 N/A reverse_test package stringutil

import "testing"

func TestReverse(t *testing.T) {
    cases := []struct {
        in, want string
    }{
        {"Hello, world", "dlrow ,olleH"},
        {"", ""},
    }
    for _, c := range cases {
        got := Reverse(c.in)
        if got != c.want {
            t.Errorf("Reverse(%q) == %q, want %q", c.in, got, c.want)
        }
    }
}
 N/A reuse_conanfile 
from conans import ConanFile

class Hello(ConanFile):
    name = "default"
    version = "0.1"
    exports = '*'
    requires = "stringutil/0.1@lasote/stable"
    def imports(self):
        self.copy("*.go", "./src/stringutil", "", "stringutil")
 N/A main package main

import (
    "fmt"
    "stringutil"
)

func main() {
    fmt.Printf(stringutil.Reverse("!oG ,olleH"))
}
 GoCompleteTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A test_server N/A TestServer N/A N/A */*@*/* * N/A users N/A lasote mypass N/A N/A self servers N/A default test_server N/A N/A self client N/A TestClient servers N/A self servers users N/A default N/A N/A lasote mypass N/A reuse_test N/A N/A self N/A N/A N/A conan_reference N/A N/A ConanFileReference loads stringutil/0.1@lasote/stable N/A files N/A conanfile.py reverse.go reverse_test.go reverse.txt hello/helloreverse.txt stringutil_conanfile reverse reverse_test reverse reverse N/A N/A N/A N/A self client save files N/A N/A N/A N/A self client run export lasote/stable N/A N/A N/A N/A self client run N/A install %s --build missing N/A str conan_reference N/A package_ids N/A N/A N/A N/A self client paths conan_packages conan_reference N/A N/A N/A self assertEquals N/A len package_ids 1 N/A package_ref N/A PackageReference conan_reference N/A package_ids N/A 0 N/A N/A N/A self _assert_package_exists package_ref N/A N/A self client paths N/A list N/A N/A files keys N/A N/A N/A N/A self client run N/A upload %s N/A str conan_reference N/A server_paths N/A N/A N/A self servers N/A default paths N/A conan_path N/A N/A server_paths export conan_reference N/A N/A N/A self assertTrue N/A N/A N/A os path exists conan_path N/A N/A N/A N/A self client run N/A upload %s -p %s N/A N/A str conan_reference N/A str N/A package_ids N/A 0 N/A N/A N/A self _assert_package_exists_in_server package_ref server_paths N/A list N/A N/A files keys N/A other_conan N/A TestClient servers N/A self servers users N/A default N/A N/A lasote mypass N/A N/A N/A other_conan run N/A install %s --build missing N/A str conan_reference N/A build_path N/A N/A N/A other_conan paths build package_ref N/A N/A N/A self assertFalse N/A N/A N/A os path exists build_path N/A N/A N/A self _assert_package_exists package_ref N/A other_conan paths N/A list N/A N/A files keys N/A reuse_conan N/A TestClient servers N/A self servers users N/A default N/A N/A lasote mypass N/A files N/A conanfile.py src/hello/main.go reuse_conanfile main N/A N/A N/A reuse_conan save files N/A N/A N/A reuse_conan run install --build missing N/A N/A CustomEnvPath paths_to_add N/A $GOPATH/bin var_to_add N/A N/A GOPATH N/A reuse_conan current_folder N/A N/A N/A N/A N/A platform system Windows N/A N/A command hello N/A N/A command ./hello N/A N/A N/A reuse_conan runner go install hello cwd N/A reuse_conan current_folder N/A N/A N/A reuse_conan runner command cwd N/A N/A N/A os path join N/A reuse_conan current_folder bin N/A N/A N/A self assertIn Hello, Go! N/A N/A reuse_conan user_io out N/A _assert_package_exists N/A N/A self package_ref paths files N/A N/A N/A package_path N/A N/A paths package package_ref N/A N/A N/A self assertTrue N/A N/A N/A os path exists N/A N/A N/A os path join package_path N/A real_files N/A scan_folder package_path N/A f files N/A N/A N/A N/A self assertIn f real_files N/A _assert_package_exists_in_server N/A N/A self package_ref paths files N/A N/A N/A folder N/A uncompress_packaged_files paths package_ref N/A real_files N/A scan_folder folder N/A f files N/A N/A N/A N/A self assertIn f real_files N/A N/A